Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Checkout Page Submit Trigger

 
Reply
   X-Cart forums > X-Cart 5 > General questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 07-25-2018, 03:38 AM
 
Soptareanu @Alex Soptareanu @Alex is offline
 

Advanced Member
  
Join Date: Apr 2018
Posts: 39
 

Default 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 !?
__________________
Soptareanu Alex
Reply With Quote
  #2  
Old 07-25-2018, 10:41 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default 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
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote

The following user thanks tony_sologubov for this useful post:
Soptareanu @Alex (07-25-2018)
  #3  
Old 07-25-2018, 10:54 PM
 
Soptareanu @Alex Soptareanu @Alex is offline
 

Advanced Member
  
Join Date: Apr 2018
Posts: 39
 

Default Re: Checkout Page Submit Trigger

It works ! Your solution solved my task.
__________________
Soptareanu Alex
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > General questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:38 PM.

   

 
X-Cart forums © 2001-2020