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

How to change the add to cart form's behaviour
 
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 09-12-2018, 04:07 AM
 
go2ready go2ready is offline
 

Newbie
  
Join Date: Aug 2018
Posts: 3
 

Exclamation How to change the add to cart form's behaviour

Hello there,

Our workflow provide customers an option to go to 3rd party website with their current selection(product id, attribute value that defines variants etc.), thus we want to add a button next to the add to cart button that does the some request as the add to cart but to different url and using GET instead of POST.

However a glance of the code tell us that the form is controlled by javascript, and unfortunately it is hard coded to always go to the form's url and method.

We tried to modify those form attribute on submit, the GET request has been sent but the web brower is not directing to the url. This is somewhat expected since for whatever reason the request is probably sent by javascript instead of the form itself.

Our question is, is there a way to simply disable any javascript shenanigans and let the form just sent a GET request in the browser, or there is no way to do that other than refractor some js code in commonforms?

With thanks,
Richard
__________________
JoJo Tech
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (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 05:55 PM.

   

 
X-Cart forums © 2001-2018