Can any one help me? When I create simple product in GUI I can set color value by dropdown menu.
My question is:
How to assign color value programmatically, when I create simple product? I have spend whole day searching a way do to it.
dropdown-attributemagento-2.1programmaticallysimple-product
Can any one help me? When I create simple product in GUI I can set color value by dropdown menu.
My question is:
How to assign color value programmatically, when I create simple product? I have spend whole day searching a way do to it.
Best Answer
I found the answer from here for a simple product. I post here the code because the post I am referring to does not point out which Product Attribute value should be used.