Best answer

Adding a WooCommerce Product in Multiple Categories

  • 23 November 2020
  • 2 replies
  • 760 views

Hi, 

I’m hoping someone can help me with this seemingly simple issue - I can’t figure out how to add a product but add it into more than one category. 

I’m trying to do this via the WooCommerce Zapier integration.

I’ve tried: 

[id: xx],[id: yy]

and

xx,yy

and

[id: xx]

[id: yy]

and everything else I can think of. 

Is there a format that will work?

Eg:

 

icon

Best answer by GetUWired 24 November 2020, 14:49

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 +12

Hi @BradZA,

 

It looks like the Zap does support Line Items. If it doesn’t accept it in the format “xx yy” then I would guess you will need to add a step that precedes the add product step to create the array. You can use the Formatter by Zapier action > Utilities > then text to line-items. The formatter will take the text you enter and turn it into an array which you can pass into the category step. 

Userlevel 7
Badge +14

Check the WooCommerce API for clues about how to format the Categories.

https://woocommerce.github.io/woocommerce-rest-api-docs/#update-a-product

Might have to use the WC API via. Code or Webhook step rather than an available Action step.