修改与Magento的自动属性 [英] Modify automatically an attribute with magento
本文介绍了修改与Magento的自动属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想修改我的产品的一个属性自动(code)。我怎么能这样做PLZ?
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
推荐答案
如果属性的名称是ATTR和产品加载到目标$产品
if attribute name is "attr" and product is loaded into object $product
$product->setAttr($value);
$product->save();
这篇关于修改与Magento的自动属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文