Woocommerce Node - Create Product, Categories Bug

Hello.

In Woocommerce Node i try to create a product and assign it to categories.

I have the same problem as described here that is not solved.

Woocommerce workflow - Questions - n8n

image

ERROR: additionalFields.categories.map is not a function

Stack
TypeError: additionalFields.categories.map is not a function
    at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/WooCommerce/WooCommerce.node.js:155:71)
    at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:658:42)
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:631:68
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

How to create a product and assign it to woocommerce categories. The Woo Node says to enter the name or IDs and that’s clearly not working in expression editor.

Neither Name nor ID are working in expression editor.

It works only if i manually select a category from fixed value

image

Screen record of the problem

Recordit: Record screencasts fast & free! with GIF Support!

Hey @Mulen,

As you are using an expression can you try using {{ [16,29,212] }} to see if that works.

1 Like

Thank you it works.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.