0

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

4

1 回答 1

1

如果属性名称是“attr”并且产品被加载到对象 $product

$product->setAttr($value);
$product->save();
于 2009-12-17T15:55:21.530 回答