cancel
Showing results for 
Search instead for 
Did you mean: 

Checkout success page not showing

Checkout success page not showing

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 

Screenshot from 2017-01-16 14-06-18.png

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.

 

4 REPLIES 4

Re: Checkout success page not showing

Hi @shyopatsaraswat

 

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.

Let me know if it helps. You can raise a KUDOS if its really worth for you. Also if it solves your problem then please mark as SOLUTION.

Re: Checkout success page not showing

Hi Vikas, 

 

But i am not using any other checkout module, it's magento checkout onepage module only.

Re: Checkout success page not showing

Hi @shyopatsaraswat

 

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.

Let me know if it helps. You can raise a KUDOS if its really worth for you. Also if it solves your problem then please mark as SOLUTION.

Re: Checkout success page not showing

I have also facing same issue please help me http://bodyhulk.com/sid/

 

prntscr.com/jljqq8