Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

External Cart - Add to Cart Re-direct Chrome Issue


Ashyyc

Question

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

Hello,

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?

 

Cheers,

Ash

Edited by Ashyyc
Link to comment

5 answers to this question

Recommended Posts

  • 0

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

1604752838_ScreenShot2021-02-12at6_00_01PM.png.6b96c4df3c7ead3b5bd5e8141201db46.png

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.

932815831_ScreenShot2021-02-12at6_16_17PM.png.ef253ee201f3b86ea687da36c43cfa03.png

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
  • 0

@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
  • 0

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...