How to get the default validation template for magento store?

I am trying to send a user for verification programmatically in Magento. I can send them to $this->_redirect('checkout/onepage');, but if they have some kind of third-party check, I will not use it. Is there a way to get the default validation URL for the site and redirect there?

+5
source share
2 answers

By default, the checkout link is returned by a getCheckoutUrl()class function Mage_Checkout_Block_Onepage_Link. If it is pretty simple:

public function getCheckoutUrl()
{
    return $this->getUrl('checkout/onepage', array('_secure'=>true));
}

Third party extensions most likely override this class (I checked OneStepCheckout 1.4 and it works like that).

+4
source

you can try with

$checkout_link = Mage::helper('checkout/url')->getCheckoutUrl();

this link refund in all conditions

  • , OnePagecheckout OneStepcheckout
  • , URL-
+19

All Articles