0

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.

2
Mage::getSingleton('checkout/type_onepage')->getCheckoutMethod()

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.