Category: PrestaShop Tutorials (page 10 of 14)

How to add live chat code in PrestaShop 1.7?

In this post I am going to explain how to add live chat code in prestashop 1.7. In order to add your live chat code at footer, please open the below files from your current template/theme. For example classic template footer.tpl file path. [PrestaShop Root Directory]/themes/classic/templates/_partials/footer.tpl Please check your template name and find the footer.tpl…

How to display date with different format in PrestaShop 1.7

In this post I am going to explain how how to display date with different format in Prestashop 1.7. In order to display a date in your .tpl file, you can use the smarty.now function. Here are some common examples: {$smarty.now|date_format:”%b %e %Y”} Result: Oct 19 2019 {$smarty.now|date_format:”%D”} Result: 10/19/19 {$smarty.now|date_format:”%A, %e %B %Y”} Result:…

How to get full sub-categories tree from root category id in PrestaShop 1.7

In this post I am going to explain how to get full sub-categories tree from root category id in PrestaShop 1.7. // Set your root category id $root_category_id = 2; // Set language id $language_id = $this->context->language->id; // Get category tree for given root category $category_tree = Category::getNestedCategories($root_category_id, $language_id); // Print category array and find…

PrestaShop Tutorial – How to change Back Office language

In this tutorial, I will explain you, How to change Back Office language in your PrestaShop Store. Step 1. Log into your PrestaShop 1.7 Back-Office Step 2. In your PrestaShop Back-Office сlick on account icon at the top right corner and click the Your profile link: OR Step 2. In your PrestaShop Back-Office go to…

PrestaShop Tutorial – How to add a new language

In this tutorial, I will explain you, How to Add a New Language in your PrestaShop Store. To add a language to PrestaShop, follow these steps: Step 1. Log into your PrestaShop 1.7 Back-Office Step 2. Under Add / Update a language, Select a language you want to add from the drop-down list Step 3….

PrestaShop Tutorial – How to edit contact details

In this tutorial, I will explain you, How to edit contact details in your PrestaShop Store. Step 1. In your PrestaShop Back-Office go to Shop Parameters > Contact > Stores. Scroll down to bottom and find and Contact details Block: Step 2. Edit the Contact details and Save the changes: Step 3. Refresh the Front-Office…

How to get Product Url by Product Id in PrestaShop 1.7

In this post I am going to explain how Get Product Url by Product Id in PrestaShop 1.7. // Your Product id $id_product = 10; // Language id $id_lang = (int) Configuration::get(‘PS_LANG_DEFAULT’); // Load Product object $product = new Product($id_product, false, $id_lang); // Validate Product object if (Validate::isLoadedObject($product)) { // Initialize the Link Object $link…

How to get manufacturer details by id in PrestaShop 1.7

In this post I am going to explain how to get manufacturer details by id in PrestaShop 1.7. // Your manufacturer id $id_manufacturer = 1; // Language id $id_lang = (int) Configuration::get(‘PS_LANG_DEFAULT’); // Load manufacturer object $manufacturer = new Manufacturer($id_manufacturer, $id_lang); // Validate manufacturer object if (Validate::isLoadedObject($manufacturer)) { // Print manufacturer name echo $manufacturer->name; //…

How to get product manufacturer details by product id in PrestaShop 1.7.

In this post I am going to explain how to get product manufacturer details by product id in PrestaShop 1.7. // Your product id $id_product = 10; // Language id $id_lang = (int) Configuration::get(‘PS_LANG_DEFAULT’); // Load product object $product = new Product($id_product, false, $id_lang); // Validate product object if (Validate::isLoadedObject($product)) { // Get product manufacturer…

How to get product stock information in PrestaShop 1.7?

In this post I am going to explain how to get product stock information in PrestaShop 1.7. // Your product id $id_product = 10; // Language id $lang_id = (int) Configuration::get(‘PS_LANG_DEFAULT’); // Load product object $product = new Product($id_product, false, $lang_id); // Validate product object if (Validate::isLoadedObject($product)) { // Get product Quanity echo $product->quantity; //…

Older posts Newer posts