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

 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 1 June 2022, 00:51

View original

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

Userlevel 7
Badge +14

Hi @Amir hashemi 

Good question.

You’ll likely need to use a custom Code step to handle the null data points:



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


Userlevel 7
Badge +9

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!