I have a little problem with placing order button on magento. For some reasons when I complete a order and click "Place Order" it doesn't redirect the page in a success page (or even elsewhere) it just stays in the checkout page with all the products still inside (image https://i.sstatic.net/74I3X.png this is what happen when I click the place order button)
I don't really know where to modify the redirect to another page.
This is the code for the /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();
}
[SOLVED] There was a problem with the file in /public_html/app/code/core/Mage/core/email/template.php (there was a character that stopped the page)
Thank you all guys.