- Posts: 2696
- Thank you received: 74
nom du fabricant dans la fiche poduit
13 years 10 months ago - 13 years 10 months ago #75236
by erickb
nom du fabricant dans la fiche poduit was created 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
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: 13 years 10 months ago by erickb.
Please Log in or Create an account to join the conversation.
13 years 10 months ago #75296
by Xavier
Replied by Xavier on topic Re: nom du fabricant dans la fiche poduit
Bonjour,
Pour récupérer le nom du fabricant, vous pouvez utiliser le code:
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.
13 years 10 months ago #75300
by erickb
Replied by erickb on topic Re: nom du fabricant dans la fiche poduit
super
merci
merci
Please Log in or Create an account to join the conversation.
Time to create page: 0.166 seconds