Try the Demo

Magento Forum

   
After checkout magento redirect to shopping cart (why)
 
zeusco
Jr. Member
 
Avatar
Total Posts:  15
Joined:  2008-03-17
Santiago de Chile
 

Hi,

Thks for read this, my english its basic so please be patience.

Im finishing a magento site, and today just for test i put a order selecting guest option, i fill all options and i press PLACE ORDER button, magento show the message “Submitting order information”, magento think few seconds, after that I am redirected to SHOPPING CART again, all products are there, few minutes after i receive the email confirmation, Why magento still maintains the shopping cart, I expected a SUCCESS page o something like that.

Any help

Thks again for read this

Zeusco

 Signature 

Zeusco
Santiago de Chile

 
Magento Community Magento Community
Magento Community
Magento Community
 
zeusco
Jr. Member
 
Avatar
Total Posts:  15
Joined:  2008-03-17
Santiago de Chile
 

Any idea, please help me wink

 Signature 

Zeusco
Santiago de Chile

 
Magento Community Magento Community
Magento Community
Magento Community
 
kiatng
Enthusiast
 
Total Posts:  870
Joined:  2008-09-03
Kuala Lumpur, Malaysia
 

I have similar problem with ver 1.4.1.1. It is a very strange problem. It seems like after placing the order, the browser won’t stay on the success page checkout/onepage/success/.  The reason is that Mage_Checkout_OnepageController::successAction is being called twice. And in the second call, $session->getLastSuccessQuoteId() is null and so the browser is redirected to the cart page showing the item. However, the item in the cart will disappear if browser is refresh. And the confirmation email is sent as well as the backend showing the order is received.

Resolution, replaced all files in /app/code/core/Mage/Checkout with a backup copy. This sometimes will fix it.

If not, then comment line 208 and 209 in Mage_Checkout_OnepageController::successAction:

public function successAction()
    
{
        $session 
$this->getOnepage()->getCheckout();
        if (!
$session->getLastSuccessQuoteId()) {
           
// $this->_redirect('checkout/cart'); //comment this line 
           // return; //you can comment this also
        
}

        $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');
        
$this->renderLayout();
    
}

Then do another checkout, and usually the success page is displayed. Now here is the strange part, remove the comment line 208 and 209 so it is back to the original. Do another checkout, what happen? The success page remains as it should be.

 
Magento Community Magento Community
Magento Community
Magento Community
 
zeusco
Jr. Member
 
Avatar
Total Posts:  15
Joined:  2008-03-17
Santiago de Chile
 
kiatng - 26 October 2010 07:56 AM

I have similar problem with ver 1.4.1.1. It is a very strange problem. It seems like after placing the order, the browser won’t stay on the success page checkout/onepage/success/.  The reason is that Mage_Checkout_OnepageController::successAction is being called twice. And in the second call, $session->getLastSuccessQuoteId() is null and so the browser is redirected to the cart page showing the item. However, the item in the cart will disappear if browser is refresh. And the confirmation email is sent as well as the backend showing the order is received......

Thks for your help Kiatng, but the problem was solved MOVING magento to Dedicated Server, after install into a new server and made the config changes the store works again, after install y try to finish a process like a GUEST ANNDDDDDD works with out problems, the problem was the shared hosting plan, for some reason magento TAKE to much memorie to finish the shopping process.

BUUUUUT one other problem was born :(........

When i try to create a NEW customer Magento show a white page with a array:

http://domain.com/customer/account/createpost/

Array
(
[entity_id] => 5
[firstname] => XXXXX
[lastname] => XXXXX
[email] => XXXX@XXXX.com
[password] => 1qaz1qaz
[confirmation] => 1qaz1qaz
[is_subscribed] => 1
[group_id] => 1
[store_id] => 1
[entity_type_id] => 1
[parent_id] => 0
[created_at] => 2010-11-16 16:04:06
[updated_at] => 2010-11-16 16:04:06
[created_in] => Tienda Español
[website_id] => 1
[password_hash] => 051d7ec922e48261afabe6f9306aa19d:wg
)

I search in google and magento chat, but no answer :(

Please some help to this poor man, who want to kill him self

 Signature 

Zeusco
Santiago de Chile

 
Magento Community Magento Community
Magento Community
Magento Community
 
kiatng
Enthusiast
 
Total Posts:  870
Joined:  2008-09-03
Kuala Lumpur, Malaysia
 

Replace /app/code/core/Mage/Customer/ with a new copy?

 
Magento Community Magento Community
Magento Community
Magento Community
 
zeusco
Jr. Member
 
Avatar
Total Posts:  15
Joined:  2008-03-17
Santiago de Chile
 
kiatng - 16 November 2010 07:57 PM

Replace /app/code/core/Mage/Customer/ with a new copy?

Doesnt work, i download a new copy of my magento version (1.4.0.1) and upload the folder.

:(

Thks for your time

 Signature 

Zeusco
Santiago de Chile

 
Magento Community Magento Community
Magento Community
Magento Community
 
kiatng
Enthusiast
 
Total Posts:  870
Joined:  2008-09-03
Kuala Lumpur, Malaysia
 

PM me if you would like me to take a look, will require FTP and admin access.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top