$quote = Mage::getSingleton('checkout/session')->getQuote();
$oldCouponCode = $quote->getCouponCode();
if (strlen($oldCouponCode)) {
$quote->setCouponCode('')->collectTotals()->save();
}
$oldCouponCode = $quote->getCouponCode();
if (strlen($oldCouponCode)) {
$quote->setCouponCode('')->collectTotals()->save();
}
No comments:
Post a Comment