In this post I am going to explain how to get current logged in customer details in PrestaShop 1.7. 1) Inside module or controller file (php) if ($this->context->customer->isLogged()) { $customerId = $this->context->customer->id; $firstname = $this->context->customer->firstname; $lastname = $this->context->customer->lastname; $email = $this->context->customer->email; echo $customerId . “<br>”; echo $firstname . “<br>”; echo $lastname . “<br>”; echo $email…


Recent Comments