Extension list

yootheme

ecommerce

joomla

Skip to main content

List of all our extensions

Create an account

Bug in default_right.php JS serialize (missing &)

Bug in default_right.php JS serialize (missing &) was created by keep2000

Posted 1 week 5 days ago #963
Hi,I noticed a problem in the checkout code inside default_right.php
Right now the form data is built like this:
Code:
datas = jQuery("#pcaddressform").serialize(); datas = datas + jQuery("#pcshipaddressform").serialize(); var phshippingmethodfield = jQuery('input[name^="phshippingmethodfield"]'); if (phshippingmethodfield.length > 0) { datas = datas + phshippingmethodfield.serialize(); }
Because there’s no "&" between the serialized strings, the parameters get concatenated and the request ends up like:
Code:
jform[city_phs]=rphshippingmethodfield[4][id]=12345
This happens if the shipping method submits custom hidden fields, like zasilkovna.It should probably be:
Code:
                datas = jQuery("#pcaddressform").serialize();                 datas = datas + "&" +jQuery("#pcshipaddressform").serialize();                 var phshippingmethodfield = jQuery('input[name^="phshippingmethodfield"]');                 if (phshippingmethodfield.length > 0) {                     datas = datas + "&" +phshippingmethodfield.serialize();                 }
Could you please confirm and fix this in the package?Thanks!

Please Log in or Create an account to join the conversation.

Replied by JProStudio on topic Bug in default_right.php JS serialize (missing &)

Posted 1 week 2 hours ago #973
Hi we changed default_right.php, i uploaded it here. please check  

File Attachment:

File Name: default_right.zip
File Size:10 KB

For urgent help please create a support ticket extensions.joomlapro.com/support/tickets

Please Log in or Create an account to join the conversation.

Time to create page: 0.505 seconds
Powered by Kunena Forum