Woo-commerce Description Gives Error for " and n character is added for \n
Status: Closed · Asked by Phil Hart on · 0 views
Issue- 1
We sync our Repairshopr with woo-commerce.
Workflow name - Repairshopr Product to Woocommerce
But if there is a " in the description is gives JSON error - IjUxNjc4NTI3Ig_3D_3D
Our product description has " many times to mention size in inches, so please let us know how to pass " in woo-commerce description.
Issue -2
So we tried to remove " and re-executed the task id but now it add 'n' for \n(new line), see the attached screenshot. How to solve this?
Attachments


@Pabbly @Supreme Verma any updates on this?
Hey @dataforge
Because of the double quotes in the products description, the action step gets failed, because those characters break the JSON format.
So kindly avoid those characters while passing the data to WooCommerce.
Hey @dataforgeBecause of the double quotes in the products description, the action step gets failed, because those characters break the JSON format.
So kindly avoid those characters while passing the data to WooCommerce.
But what about \n issue?
We'd really like to be able to use " character. Is this something that is not possible at all because of json, or could we contact woocommerce and see if something could be modified on their api? would it be possible to escape the character with some code? thanks!
Hey @dataforge
If you are getting or passing the \n through the description, then you can simply escape that particular character with the help of Text Formatter.

Similarly, you can use the Text Formatter to escape the ".
