Jump to content

External Cart - Add to Cart Re-direct Chrome Issue

Recommended Posts

Site URL: https://www.eatturmeric.ca/subblytest


We are integrating an external cart system called subbly. When we click the "add to cart" button on this page, it is supposed to add to the subbly cart and re-direct back to /subblytest. This works in all browsers but chrome. Chrome instead re-directs to homepage when we click "add to cart". 


Any idea why we see this behaviour only in chrome and is there a solution?




Edited by Ashyyc
Link to comment

I'm not sure what is going on but I do see something that looks out of place.


That Reload looks wrong to me.

It is caused by this bit of code.

<a href="javascript:window.location.reload(true)" id="yui_3_17_2_1_1613181862235_404">Reload</a>

This is probably in Settings > Advanced > Code Injection > HEADER. Or, Page Settings > Advanced > Page Header Code Injection for the page.

When I go to the URL < https://www.subbly.co/checkout/add/72198 > for one of the add to cart buttons manually I get the following.


Not sure if you should be able to go directly to the URL in the browser by typing in the address but if so then it appears there is a configuration error.

Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support!

Link to comment

@creedon Thank you for the response. Sorry yea that JS code is just something i was playing around with to fix this issue. The problem was there before I put that snippet in. I have removed it now. No, that link is not supposed to work stand alone. 


The link is doing its job , it is adding to cart when clicked on but for some reason it goes back to the home page instead of staying on /subblytest. This only happens in chrome. 

Note this funtionality is for "add to cart" button not "subscribe" on the page. 


Link to comment

The two mechanisms are different. The meta refresh is a tag that is inserted in the head of page that causes the browser to automatically refresh is contents. It's basically the very old way pages were kept fresh before all the ajax stuff came long.

Your issue is related to links and redirects.

Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.