I'm trying to send a user to checkout programmatically in Magento. I can send them to $this->_redirect('checkout/onepage');
but if they have some sort of third party checkout extension I won't be using the proper one. Is there a way to get the default checkout url for the site and redirect there?
you can try with
$checkout_link = Mage::helper('checkout/url')->getCheckoutUrl();
this return checkout link in all conditions
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With