Context - prestashop 1.7

Get the language id from context.
     Context::getContext()->language->id
User logged or not - login user id
    $this->context->customer->isLogged() or    Context::getContext()->customer->isLogged()

Comments

Popular Posts