Hi,
I am customising payment module.
When i am passing information using opencart ... application is generating
because of some security feature when i am passing my attributes as input type = hidden they are not getting trasmitted when I removed enctype="multipart/form-data" from tag it is working properly.
Can you please tell me reason behind this?
And how can I remove enctype="multipart/form-data" from form tag. How is this code being generated?
If you are using 0.7.9 RC3 you can utilize the session override variable
In your payment module under the getActionURL() function, add this at the top:
In your payment module under the getActionURL() function, add this at the top:
Code: Select all
$this->session->set('payment_form_enctype', 'text/plain');
The point of having the override is so you don't have to modify core files. When we release a new version you will need to make those changes again. Also if you wanted to release this as a contrib for others you might break some files. You should always try to keep custom code within its own files to make them completely modular when possible
Instead you should really do as I explain
Instead you should really do as I explain
Last edited by Qphoria on Wed Nov 26, 2008 3:38 am, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 5 guests