Featured post
enterprise - How to restore a quote in Magento when returning to the Onepage checkout? -
i using magento enterprise, datacash 3d secure payment module.
in event of error during payment process want user returned onepage checkout basket intact. when user returns checkout basket empty forwarded "checkout/cart" because have no items.
i thought might problem code have initial payment action redirecting straight away error onepage checkout.
public function redirectaction() { mage::getsingleton('core/session')->adderror("there problem payment gateway. please try again"); $session = mage::getsingleton('checkout/session'); return $this->_redirect('checkout/onepage/', array('_secure'=>true)); }
however on returning checkout page basket empty. adding in following log indexaction of onepage checkout "quote ". looking in database quote has had active status set 0.
error_log("quote ".mage::getsingleton('checkout/session')->getquoteid());
i have not came across problem standard magento enterprise. has come across issue? ideally not want customers having add products basket again. its conflicting sort of magento enterprise module.
thanks in advance help!
basically answered own question. load quote (if it's not available) , perform this:
$yourquote()->setisactive(true);
- Get link
- X
- Other Apps
Comments
Post a Comment