0

I tried with this:

$catalogPriceRule = Mage::getModel(\’catalogrule/rule\’);

$catalogPriceRule->applyAll();

But it doesn´t work.

4

1 回答 1

0

像这样试试

Mage::getModel('catalogrule/rule')->applyAllRulesToProduct($productId); 
于 2014-05-30T05:14:08.657 回答