Jump to content

Edit History

QuentinJou

QuentinJou

Thank you for that answer. I see that...😅

I tried in parallel. It works in terminal but not in my webserver so I don't know if we can do with it?

For the multiple process of prestashop is it activated basic? I'm running my function in a back office hook like that, but can't do anything else beside it. Is it the good process ? How can I do this?

public function hookDisplayBackOfficeHeader()
    {
        if (Tools::getIsSet('initProduct')) {
        	$this->initAll();
        }

        $redirect = $_SERVER['REQUEST_URI'] . '&initProduct=1';
        $this->context->smarty->assign(
            [
                'redirect' => $redirect,
            ]
        );
    }

 

(sorry for my bad english)

QuentinJou

QuentinJou

Thank you for that answer. I see that...😅

I tried in parallel. It works in terminal but not in my webserver so I don't know if we can do with it?

For the multiple process of prestashop is it activated basic? I'm running my function in a back office hook like that, but can't do anything else beside it. Is it the good process ? How can I do this?

public function hookDisplayBackOfficeHeader()
    {
        if (Tools::getIsSet('initProduct')) {
        	$this->initAll();
        }

        $redirect = $_SERVER['REQUEST_URI'] . '&initProduct=1';
        $this->context->smarty->assign(
            [
                'redirect' => $redirect,
            ]
        );
    }

 

 

×
×
  • Create New...