Jump to content

Edit History

kimokimo

kimokimo


missing informations

17 hours ago, SmartPlugs said:

Hi kimokimo,

If you have a look on the code i posted i'm sure you gonna find the line that does the redirect, please.
But i'm not sure PrestaShop, addons i mean if your goal is to sell your module on addons, would let  you redirect people to another location after module install...

Yann

hi Yann,

actually i have tried but it didn't work, i have tried doing this code 

       return (parent::install() && this.hookActionDispatcher() );
    }
    public function getContent() {}

    public function hookActionDispatcher()
    {
                    $link = new Link();
                    Tools::redirect('https://mywebsite.com');
    }

but it didn't work unfortunatly, could you help ?

i also tried this code to redirect 

        return (parent::install() && this.header('location: http://www.mysite.com/index.php?pop=yes') );

still no chance

kimokimo

kimokimo

15 hours ago, SmartPlugs said:

Hi kimokimo,

If you have a look on the code i posted i'm sure you gonna find the line that does the redirect, please.
But i'm not sure PrestaShop, addons i mean if your goal is to sell your module on addons, would let  you redirect people to another location after module install...

Yann

hi Yann,

actually i have tried but it didn't work, i have tried doing this code 

       return (parent::install() && this.hookActionDispatcher() );
    }
    public function getContent() {}

    public function hookActionDispatcher()
    {
                    $link = new Link();
                    Tools::redirect('https://mywebsite.com');
    }

but it didn't work unfortunatly, could you help ?

×
×
  • Create New...