如何以编程方式为产品属性启用"Use Default Value"?



有人知道我如何启用编程"使用默认值"的产品属性在第二个StoreView,以便Magento使用默认的StoreView的值?

我尝试了以下代码,但这不起作用:

$soap->call($sessionId, 'product.update', array($sku, array('color_addition'=>''), 'gb'));

您可以通过传递false来为属性值启用"使用默认值"。

$soap->call($sessionId, 'product.update', 
array($sku, array('color_addition'=>false), 'gb'));

最新更新