On OnepageController.php how I can check checkout method is checkout as guest
-
16-10-2019 - |
Question
I want to check checkout method of user on OnepageController.php
eg if checkout as guest then value will be guest
I tried the following:
$this->getRequest()->getPost('method')
...but it's not working.
Solution
Mage::getSingleton('checkout/type_onepage')->getCheckoutMethod()
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange