Woo-commerce Description Gives Error for " and n character is added for \n

Status: Closed · Asked by Phil Hart on · 0 views

Phil Hart — Question ·

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

245671469_297782831922869_1367859231834146819_n.png
245623808_1181655878910216_9076023943076087405_n.png
Phil Hart — Reply ·

@Pabbly @Supreme Verma any updates on this?

Pabblymember11 — Reply ·

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.

Phil Hart — Reply ·
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.


But what about \n issue?
Phil Hart — Reply ·

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!

Pabblymember11 — Reply ·

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

Back to all forum threads · Log in to reply