Magento News

 

Magento saving a product option for an attribute with a dropdown type

I have written code that automatically imports products basically something like:

$product->setName('my name');
$product->save();

This is fine for free fill text boxes, but how would I go about setting say manufacturer, which is a drop down menu? Is there also a way that if the option doesnt exist, then it will automagically add it?

Thanks

Magento saving a product option for an attribute with a dropdown type

Possibly Related Posts:


 

Leave a Reply