• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

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

dataforge

Member
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
    245671469_297782831922869_1367859231834146819_n.png
    530.8 KB · Views: 52
  • 245623808_1181655878910216_9076023943076087405_n.png
    245623808_1181655878910216_9076023943076087405_n.png
    84.4 KB · Views: 51

Supreme

Well-known member
Staff member
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.
 

dataforge

Member
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!
 

Supreme

Well-known member
Staff member
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.

unnamed.png


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

unnamed.png
 
Top