Woo product category with apostrophe throws error
-
Hi Thomas,
I’m using the latest version (1.61) of the plugin. I’m getting a js error in the console on many single product pages because their category has an apostrophe in it. The apostrophe isn’t being escaped so I get this in my HTML source:
var gtm4wp_product_detail_data = { name: 'Not Just Surfers Tee', id: 0, price: 0, category: 'Men's T-shirts', variant: '' };
Is there something I can do at my end to fix it?
Example product page here: https://bit.ly/2so9s7wThanks,
Ben
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Woo product category with apostrophe throws error’ is closed to new replies.