• 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

WooCommerce Meta Data Separation For Each Product

Hello There,

We have recently stated using pabbly connect. We have tried our best to understand this until now but were forced to raise this to the forum.

We have created a flow where a new order is created a template based WhatsApp message is sent through API and everything works perfectly fine.

But we are having 2 concerns as of now
  1. We are having product fields / addon fields for our products which are cakes. Like delivery date, message on the cake, pick up data, pick up location etc. We have tried our best to add the json extractor / data transformer from the woocommerce meta. But the meta fields are showing like ["Pickup"],["Pickup"] for 2 products in the order. It is showing similarly in the whatsapp message also. Can we show it like how the product names are shown or just the plain format without brackets and quotes?
  2. We have some optional fields in the product fields, how can we manage it in the whatsapp template? Like users sometime need that - so it will be included in the whatsapp message, if not entered (empty) the message need not show that.

Thanks in advance
Shashikant
 
Hello @Preeti Paryani,

We have already tried the meta data extractor action but they don't come as a array. Seems like they are separated. I tried with both simple response on and off. Below is the response

1730205597467.png


Usually how does this woocommerce whatsapp notification work when we have multiple products in the order?

It seems that this would not be possible as the template fields are required to the API.
That's unfortunate. I think we will have to create 2 different messages templates and operate it through routing action if it's empty or not empty? Will that work?
 

ArshilAhmad

Moderator
Staff member
Please try adding a Line Itemizer to your workflow to extract the JSON as comma-separated line items.

Then, to remove the double quotes and square brackets, use the 'Text Formatter: Replace Text' action step.

That's unfortunate. I think we will have to create 2 different messages templates and operate it through routing action if it's empty or not empty? Will that work?
Yes, you can add a Router to your workflow and set a Filter condition to check whether a field is empty or not. Then, add different templates to each of the two routes.

 
Top