我有活动的观察员
controller_action_predispatch_checkout_onepage_savePayment
我想根据某些条件更改总计。我试过:
$值 = 100;
$quote = Mage::getSingleton('checkout/type_onepage')->getQuote();
$quote->setGrandTotal($value);
$quote->setTotalsCollectedFlag(false)->collectTotals();
$quote->保存();
或者
$值 = 100;
$quote = Mage::getSingleton('checkout/type_onepage')->getQuote();
$quote->setGrandTotal($value);
$quote->collectTotals();
$quote->保存();
但它不起作用。有任何想法吗?
谢谢大家!