I'm using OnePage module checkout.
I created my shipping method module. If is my method selected, need to redirect to provider's web. Here customer choose closest place to his shipping address and then it's redirected back to checkout. What's the best way where to do redirection? In controller? Is is even possible (isn't it restricted just to "Payment methods")?
UPDATED: There seems to be two ways:
- Redirect just after "Shipping Method" section and to be returned back to OnePage by provider's web after choosing the place. This requires to hack
app/code/core/Mage/Checkout/controllers/OnepageController.php, because when it goes back to OnePage from providers's web, it needs to:
- Save new address (previously choosen in "Shipping" section.
- Jump jump to next section ("Payment method") - i.e. skip everything up to "Shipping Method".
- Another option seems to be to hack
OnepageController.phpto do redirect at the beginning of
I also wanted to get inspiration from PayPal modules, which do redirect, but I wasn't succeed.