Skip to main content
Best answer

Adding a WooCommerce Product in Multiple Categories

  • November 23, 2020
  • 2 replies
  • 878 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:

 

Best answer by GetUWired

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. 

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
  • Zapier Expert
  • 31340 replies
  • November 23, 2020

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.

 


GetUWired
Forum|alt.badge.img+12
  • Zapier Expert
  • 1030 replies
  • Answer
  • November 24, 2020

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.