php - Magento: Placing Order doesn't redirect to success page -
i have little problem placing order button on magento. reasons when complete order , click "place order" doesn't redirect page in success page (or elsewhere) stays in checkout page products still inside (image http://i.stack.imgur.com/74i3x.png happen when click place order button)
i don't know modify redirect page.
this code /checkout/controllers/onepagecontroller.php
/** * order success action */ 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(); }
please make sure have php-mbscript enabled in server.
magento 1.9.x version requires needs turned on if disabled
for more information can read following post
Comments
Post a Comment