Is it possible to set the add to cart button to take the user directly to the basket page like we used to do in V5, etc.?
Announcement
Collapse
No announcement yet.
Straight to basket?
Collapse
X
-
Re: Straight to basket?
Unfortunately with a ready theme (Suviant) - thats actually not correct. (Thought I had included that aspect, but missed it)
In order to set this up, I had to remove the id tag "id="js-add-to-cart".
This tag appears to tell the click action to show the modal and not go to the basket.
Removing it now sends the customer to the basket.
BillWilliam Gilligan - Orange Marmalade, Inc.
www.OrangeMarmaladeinc.com
Comment
-
Re: Straight to basket?
Originally posted by alphabet View PostHey Bill,
Best to consider removing the event listener function as well so it doesn't create a memory leak and possible propagation problems. Probably nothing major but I know you like the technical stuff.
Although I do _love_ the new Merchant 9 and the Ready Themes (I find they work well across platforms and are highly customizable) - there are still hidden things I just can't find..
BillWilliam Gilligan - Orange Marmalade, Inc.
www.OrangeMarmaladeinc.com
Comment
-
Re: Straight to basket?
If you use Chrome dev tools you can find it from the console log.
First turn on dev tools > console > All , and reload the page. There should be a js error and line number.
Or add back the id=js-add-to-cart then type in the console:
$('#js-add-to-cart')
getEventListeners($('#js-add-to-cart'))
or
MonitorEvents($('#js-add-to-cart')
then click add to cart button and the console will monitor the event and return the file name and line number.
Or another good place to start would be the dev tools element tab, navigate to the button element then check the events tab.
Of course knowing where the event handler function is and modifying it may be another story :)
Comment
Comment