How to skip the option to update the update cart in magento?
I am new to Magento and I am using Magento Ver. 1.6.1.0 - Custom Beta
. My client will ask me to skip the update cart ( http://mydomain.com/checkout/cart/
) step and go directly to the checkout ( https://mydomain.com/onestepcheckout/
) page . That is, when the user clicks the button BUY NOW
, they should go directly to the checkout page and not update the shopping cart.How can I do this? Are there any options in the admin panel or should I edit the code, if so, where can I find the BUY NOW action. Any help would be greatly appreciated. Thanks in Advance ...
source to share
First, why are you using the beta? Version 1.6.1.0 has an official version just like 1.6.2.0.
It is generally a bad idea to skip the Cart phase as users are expecting it. However, if you really want to, you can override the function addAction
in the CartController
module Mage/Checkout
. It's in app/code/core/Mage/Checkout/controllers/CartController.php
. For more instructions on overriding controllers, read this article . You want to keep most of the code in the function the addAction
same, just change the redirect at the end to go to Mage::getUrl('checkout/onepage')
.
source to share