Category: PrestaShop Tutorials (page 10 of 14)

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; //…

How to get product cover image by Product Id in PrestaShop 1.7

In this post I am going to explain how to get product cover image by Product Id in PrestaShop 1.7. // Your Product Id $id_product = 10; // Language id $id_lang = (int) Configuration::get(‘PS_LANG_DEFAULT’); // Get cover image for your product $image = Image::getCover($id_product); // Load Product Object $product = new Product($id_product); // Initialize the…

How to get all images of product by Product Id in PrestaShop 1.7

In this post I am going to explain how to get all images of product 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); // Validate CMS Page object if (Validate::isLoadedObject($product)) { // Get product images…

How to get CMS page details by id in PrestaShop 1.7

In this post I am going to explain how to get CMS page details by id in PrestaShop 1.7. // Your CMS Page Id $id_cms = 4; // Language id $id_lang = (int) Configuration::get(‘PS_LANG_DEFAULT’); // Load CMS Page object $cms = new CMS($id_cms, $id_lang); // Validate CMS Page object if (Validate::isLoadedObject($cms)) { // Get CMS…

How to get state details by id in PrestaShop 1.7

In this post I am going to explain how to get state details by id in PrestaShop 1.7. // Your State Id $id_state = 8; // Load State object $state = new State((int) $id_state); // Validate State object if (Validate::isLoadedObject($state)) { // Get State Name echo $state->name; // Get State ISO Code echo $state->iso_code; //…

How to get country details by id in PrestaShop 1.7

In this post I am going to explain how to get country details by id in PrestaShop 1.7. // Your Country Id $id_country = 21; // Load Country object $country = new Country((int) $id_country); // Validate Country object if (Validate::isLoadedObject($country)) { // Print Country Object echo “<pre>”; print_r($country); echo “</pre>”; }    Team HiddenTechiesWrite an…

Older posts Newer posts