开发者

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 attribu开发者_如何学Pythonte, but not how to modify.

Thx


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

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜