X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   General questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=66)
-   -   Checkout Page Submit Trigger (https://forum.x-cart.com/showthread.php?t=76432)

Soptareanu @Alex 07-25-2018 03:38 AM

Checkout Page Submit Trigger
 
Where do I find what trigger the submit form on checkout page ? I saw that when i change some input value on the checkout, the form is submited. What .js action put this behavior on my form elements ?? I look on checkout\steps\shipping\parts\address.js but i don't understand how does it works !?

tony_sologubov 07-25-2018 10:41 AM

Re: Checkout Page Submit Trigger
 
Hi Alex,

Quote:

Originally Posted by Soptareanu @Alex
Where do I find what trigger the submit form on checkout page ? I saw that when i change some input value on the checkout, the form is submited. What .js action put this behavior on my form elements ?? I look on checkout\steps\shipping\parts\address.js but i don't understand how does it works !?


You found the right JS file. CheckoutAddressView.prototype.saveForm method is what you are looking for. See, there are calls of jQuery(form).submit() method. They actually submit the form.

I am not sure how helpful my answer is, so please let me know what you are trying to add/change, so I could better understand your task and suggest more meaningful actions.

Thank you.

Tony

Soptareanu @Alex 07-25-2018 10:54 PM

Re: Checkout Page Submit Trigger
 
It works ! Your solution solved my task.


All times are GMT -8. The time now is 07:35 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.