I've been asked to look at an error appearing on the checkout and thank you pages of a Shopify store and I'm struggling to figure out a fix.
There is a JS variable which is defined incorrectly (it has HTML encoded quote marks around the value part of the declaration):
Shopify.clientAttributesCollectionEventName = "client_attributes_checkout";
I've been unable to find anything in relation to this issue in the theme code or on Google.
Can anybody offer some advice?
Solved! Go to the solution
Was that code added to the "Additional scripts", on the Settings?
I have code in the additional scripts section but it doesn't contain the encoded JS declaration causing this issue.
Also, I've found the issue on the checkout page, the additional scripts don't seem to be loaded on the checkout page.
Thank you for your help though, any other ideas?
Hi dariothornhill and sh0pify-user,
If you don't mind me asking, what Apps do you have on your stores?
ChannelAdvisor by ChannelAdvisor
Google Shopping by Shopify
Mailchimp for Shopify by Mailchimp
Shopify Theme Updater by Out of the Sandbox
It might be one of these causing the problem but I'm unable to identify where the offending code is coming from. If we can identify a common App, it would be a good starting point.
The same code appears to be present when not previewing the new checkout, but is correctly not escaped, so the error doesn't present itself in the old checkout for me.
|2 hours ago|