In this post I am going to explain how to get manufacturer details by id in PrestaShop 1.7.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | // 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; // Print manufacturer description echo $manufacturer->description; // Print manufacturer Object echo "<pre>"; print_r($manufacturer); echo "</pre>"; } |
Write an article about ecommerce that help people to grow their ecommerce business. You’ll find best ecommerce guide, news, tips & more!
May 6, 2020 at 12:02 pm
This is very valuable blog shared, thanks for sharing!