Skip to main content
Best answer

Adding Multiple products in One WooCommerce Order


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​​​​​​​
 

Best answer by jesse

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!

 

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Troy Tessalone
Forum|alt.badge.img+14

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

 


jesse
Forum|alt.badge.img+9
  • Architect
  • 1348 replies
  • Answer
  • May 31, 2022

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!