Tag: Best Prestashop Tutorials (page 9 of 9)

How to get current customer group id in PrestaShop 1.7?

In this post I am going to explain how to get current customer group id in PrestaShop 1.7. 1) Inside module or controller file (php) if ($this->context->customer->isLogged()) { $customerGroupId = $this->context->customer->id_default_group; echo $customerGroupId . “<br>”; // Do something here } else { // Do something here } 2) Inside template file (tpl) {if $customer.is_logged} {$customer.id_default_group}…

Prestashop 1.7 – Get current logged in customer details

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…

How to Setup Currencies in PrestaShop 1.7?

In PrestaShop 1.7, you can setup multiple currencies. To allow customers to shop in their local currency, you need to add multiple currency in PrestaShop 1.7. In order to add new currency go to: Back-office > Localization > Currencies tab and click the “Add new currency” button. Currency: Select the currency to add from the…

Newer posts