Jump to content

Module redirect for AdminOrders


fale.henrique

Recommended Posts

Hi, is is possible redirect by my module for AdminOrders page?

 

I did like this, but not work.

 

Ex:

<?php

class MyModuleCustomPaymentModuleFrontController extends ModuleFrontController
{

    public function initContent()
    {
        $this->display_column_left = false;
        parent::initContent();
        $this->placeOrder();
    }
    private function placeOrder()
    {
        $link = $this->context->link->getAdminLink('AdminOrders');
        Tools::redirect($link);
    }
}
Edited by fale.henrique (see edit history)
Link to comment
Share on other sites

you can't redirect a customer from the front office to the back office.

 

 

(well, I suppose you could but they would have to log in. I'm not sure you can generate a link to an admin controller from a front controller context though).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...