This question already has an answer here:
I am trying to create order programmatically.
There are configurable products having single base attribute i.e. Size. and some of configurable products have multiple (more than one) associated product having same size value.
Now, attempting to add such configurable product with particular size. But magento assigns the sibling/child/associated product which would encountered first! :( and Hence, deserving SKU/sibling dropped to create order with.
I followed code from below links:
Is there any way to add config product with particular SKU ? (something like; acceptable parameters in "addProduct" method etc..).
Please, help me on this asap as I stuck since longer time and still couldn't get any solution. :(
Div, Thanks in advance!!