Solved

Cart keeps refreshing after adding gift card

SB2021
Visitor
3 0 0

Hi,  We followed the instructions here to add a gift card option to our cart.  (https://help.shopify.com/en/manual/online-store/themes/os/customize/add-gift-wrap-option)

 

We've found that since adding it, if you check the gift card box, the gift card is added and then the cart keeps refreshing over and over making it impossible to complete checkout.

 

Can anyone help?

 

site: 46degrees.com.au 

Accepted Solution (1)

LitCommerce
Astronaut
2860 684 732

This is an accepted solution.

Hi @SB2021,

Please remove this code: https://i.imgur.com/U7kBrGy.png , https://i.imgur.com/7GeUxL9.png
Hope it clear to you.

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!

View solution in original post

Replies 5 (5)

LitCommerce
Astronaut
2860 684 732

This is an accepted solution.

Hi @SB2021,

Please remove this code: https://i.imgur.com/U7kBrGy.png , https://i.imgur.com/7GeUxL9.png
Hope it clear to you.

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!
SB2021
Visitor
3 0 0

Thank you, that looks like it fixed it.  The second screenshot seemed to be included in the first screenshot, so I just deleted everything in the first screenshot.

 

Do you mind explaining why it was doing what it was doing?  

LitCommerce
Astronaut
2860 684 732

Hi @SB2021,

Screenshot 2 does include screenshot 1, I'll just help you see if you can't find the code for screenshot 1.

With this code, it will make the page always catch giftwrap event when page reload and checkbox is checked. So when reloading selected checkbox it will default to add giftwrap with ajax and make endless loop.

Hope it clear to you.

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!
SB2021
Visitor
3 0 0

Yes that's clear.  So does this mean I only needed to remove the first screenshot and not the entire 4 commented sections in the second screenshot?

LitCommerce
Astronaut
2860 684 732

Hi @SB2021,

Screenshot 2 is the overall code, if possible you should delete according to screenshot 2.

It will be the best.

LitCommerce - The Most Simple & Affordable Multi-channel Selling Tool.
Effortlessly sell on biggest marketplaces like Amazon, Etsy, eBay, Facebook etc with bulk listing tool, real-time sync & smart order management. Use LitCommerce free for 1-year now!