Skip to main content

nom du fabricant dans la fiche poduit

14 years 2 weeks ago - 14 years 2 weeks ago #75236 by erickb
Comment recuper le nom du fabricant dans templates/TPL/html/com_hikashop/product/show_default.php

j'ai l'id avec $this->element->product_manufacturer_id , mais comment je trouve le nom vu que c'est un category_name de type manufacturer ?

et si je fais un var_dump($this->element); il est pas dedans

merci
Last edit: 14 years 2 weeks ago by erickb.

Please Log in or Create an account to join the conversation.

14 years 2 weeks ago #75296 by Xavier
Bonjour,

Pour récupérer le nom du fabricant, vous pouvez utiliser le code:
Code:
$categoryClass = hikashop_get('class.category'); $brand = $categoryClass->get($this->element->product_manufacturer_id); echo $brand->category_name;
The following user(s) said Thank You: erickb

Please Log in or Create an account to join the conversation.

14 years 2 weeks ago #75300 by erickb
super

merci

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum