The cart keeps empty after I add a product to the cart in a preview link

The cart keeps empty after I add a product to the cart in a preview link

Artist2
Visitor
2 0 1

Hi, there,

 

I shared a preview link by clicking "Share preview" button on the preview page

Artist2_0-1667658080404.png

 

My tester did the following:

- Clicked the link I shared with him

- The link was opened in the browser (we tried Chrome and Firefox). The share link seemed a randomly generated domain.

Artist2_1-1667658201394.png

- We went to a product page and clicked "add to cart" to buy a product

- We were redirected to the cart page of a live domain (not that randomly generated domain)

Artist2_2-1667658413208.png

- the added product wasn't shown in the cart

 

However, if we go to the cart page of that randomly generated domain (by filling in the link in the browser), we will see that added product. So what's going on here? Why does the "add to cart" action trigger a redirection to the live domain (please note the preview bar shows at the bottom, it means it is still in preview mode)?

 

It is a very confusing behavior. The empty cart makes us think "add to cart" is broken and takes many times to investigate it.

 

Is it a by-design behavior? Or did we miss some configuration to cause this unexpected redirection?

 

Hao

 

 

Replies 2 (2)

KetanKumar
Shopify Partner
37598 3668 12156

@Artist2 

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community!😊
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

 

If helpful then please Like and Accept Solution. Partnership of your ️ Coffee Tips and my code can bring miracles.
Want to modify or custom changes on store Hire Me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Artist2
Visitor
2 0 1

@KetanKumar, please try this link https://nx8m09y5wqwp0iuh-11325571136.shopifypreview.com

 

- You can add one product to the cart, e.g., this one https://nx8m09y5wqwp0iuh-11325571136.shopifypreview.com/collections/nouveautes/products/femme-et-tou...

- You should see the empty cart.