Skip to main content

Hello there Fam!


I need to create an order in WooCommerce whenever a Zap action is being triggered from ManyChat, Orders are being created first in ManyChat, I’m using MC data to create an order in WooCommerce, 
The challenge is, How to add multiple items in one order?

Here is what I did:

ManyChat is the trigger step, then I’m using a formatter


and on ‘create an order on WooCommerce’ action
 

No Surprise, I’m getting an error
 


Questions
1.
 having ManyChat Custom Fields with ‘no data’ might cause the problem?
P.S. With my current setup it’s kind of inevitable to receive data from ManyChat with null values, depends on the number of which item(s) in their cart, if makes sense!

2 What’s the best way to tackle this?

Much Appreciated​​​​​​​
 

Hi @Amir hashemi 

Good question.

You’ll likely need to use a custom Code step to handle the null data points: https://zapier.com/apps/code/help

 

Observation

Looks like the Product Qty mapped fields are backwards (3,2,1).

 


Hey @Amir hashemi! Troy is correct in that utilizing Code might be your best way around this. He authored this post, which includes the code you can utilize to complete this, if you’re interested!