Hi,
I want to get login user id in prestashop 1.6. I have used several methods like
$id = $this->context->customer->id;
$id = (int)$this->context->customer->id;
$id_customer = null;
if ($this->context->customer->isLogged()) {
// code to execute if i am logued
$id_customer = $this->context->customer->id;
}
But no data. Can anyone help me with this.
Thanks