the crash issue between the inch symbol(") and JSON for variant on the Product Page.

Solved

the crash issue between the inch symbol(") and JSON for variant on the Product Page.

ecomdevstar
Excursionist
16 0 3

Hey guys,

I hope you are doing well 🙂

I'm facing the crash issue between inch symbol of the Size option value and json format in the Product Page.

https://prnt.sc/kAcA9qlnAs2a

What is the solution to avoid this issue?

Thank you!

Accepted Solution (1)
Liam
Community Manager
3108 341 879

This is an accepted solution.

What could help is to ensure that where the variant is being rendered, that the Liquid object has the escape filter applied to it. Can you try this to see if it fixes the issue?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 4 (4)

Liam
Community Manager
3108 341 879

Hi Ecomdevstar,

 

Is this causing the variant to not appear/ work correctly due to the " character causing a JSON formatting error? 

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

ecomdevstar
Excursionist
16 0 3

Thank you for your reply Liam!

Yeah, the my custom JS code is not working due to this.

https://prnt.sc/-zw8Ui_lb3Xe

Liam
Community Manager
3108 341 879

This is an accepted solution.

What could help is to ensure that where the variant is being rendered, that the Liquid object has the escape filter applied to it. Can you try this to see if it fixes the issue?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

ecomdevstar
Excursionist
16 0 3

Great thank you Liam!

I've solved that issue!

Good luck with you!