Bertrand Bilks
Bertrand Bilks

Reputation: 1

Modify automatically an attribute with magento

I want to modify one attribute of my product automatically (code). How could i do that plz?

I have seen how to show one attribute, but not how to modify.

Thx

Upvotes: 0

Views: 672

Answers (1)

Loki
Loki

Reputation: 41

if attribute name is "attr" and product is loaded into object $product

$product->setAttr($value);
$product->save();

Upvotes: 1

Related Questions