Hi,
I am getting an issue when customer checkout, it's not showing success page, redirecting to checkout/cart.
i am checking console there is showing below
i am also hitting checkout/onepage/success url directly after commenting all code in successAction() in OnepageController.php, but it's redirecting to checkout/cart showing empty cart.
Note:- Order saved successfully, but order success page not showing
Please provide solution for above issue.
I think you are using any other checkout module which override the OnepageController so that after commenting all code from succesAction you are not able to access the url. Please find the Controller and print something and use exit to check is it called or not.
Let me know if it helps.
Hi Vikas,
But i am not using any other checkout module, it's magento checkout onepage module only.
Please comment succesAction in Checkout/OnepageController.php like thet
public function successAction() { /*$session = $this->getOnepage()->getCheckout(); if (!$session->getLastSuccessQuoteId()) { $this->_redirect('checkout/cart'); return; } $lastQuoteId = $session->getLastQuoteId(); $lastOrderId = $session->getLastOrderId(); $lastRecurringProfiles = $session->getLastRecurringProfileIds(); if (!$lastQuoteId || (!$lastOrderId && empty($lastRecurringProfiles))) { $this->_redirect('checkout/cart'); return; } $session->clear();*/ $this->loadLayout(); $this->_initLayoutMessages('checkout/session'); Mage::dispatchEvent('checkout_onepage_controller_success_action', array('order_ids' => array($lastOrderId))); $this->renderLayout(); }
and then call yoursite_url/checkout/onepage/success .
Let me know what which page will open.