I was wondering how to create Product Attributes automatically, I couldn't find any way to do it.
What I am trying to achieve is to create Multi Product Variants programmatically, and because the attributes can change I need to create it automatically. I have a list of set variants which need to go under a 'master' product, but I dont want it to create variants itself based on attributes.
Or is there a way to create the complex variants without creating attributes beforehand :)
There is a product attributes API much the same as every other entity to allow you to automatically create them.
Unfortunately it’s not possible to create multivariants without them as they are fundamental to its configuration, each variant being a specific combination of each attribute.
Create Product Attributes programmatically
Hi Matt,
I was wondering how to create Product Attributes automatically, I couldn't find any way to do it.
What I am trying to achieve is to create Multi Product Variants programmatically, and because the attributes can change I need to create it automatically. I have a list of set variants which need to go under a 'master' product, but I dont want it to create variants itself based on attributes.
Or is there a way to create the complex variants without creating attributes beforehand :)
Thanks!
Kind regards,
Puck
Hi Puck,
There is a product attributes API much the same as every other entity to allow you to automatically create them.
Unfortunately it’s not possible to create multivariants without them as they are fundamental to its configuration, each variant being a specific combination of each attribute.
Ahhh found it! Thanks again Matt :D
Took some time, but finally got the attributes working! Had some troubles with double aliases
is working on a reply...