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