Thursday 11 September 2014

Magento Product Addtocart go to Checkout Page by skipping Cart Page

hello Magento developer,

this example of Magento Product Addtocart go to Checkout Page by skipping Cart Page .

if you want skip cart process in magento. follow this simple code.

just goto your app/code/local/Mage/checkout/controllers/CartController.php;

write this below code. check this your site.

below code use skip cart process. just click on add to cart i will goto checkout process.

require_once 'Mage/Checkout/controllers/CartController.php';
class My_Module_Checkout_CartControllerextendsMage_Checkout_CartController
{
 public function addAction(){
$returnUrl =Mage::getUrl('checkout/onepage'); $this->getRequest()->setParam('return_url', $returnUrl); parent::addAction();
}
}
 this code help to direct redirect to checkout page

No comments:

Post a Comment

Thank You For Comment