Skip to main content

nom du fabricant dans la fiche poduit

More
13 years 10 months ago - 13 years 10 months 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: 13 years 10 months ago by erickb.

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

More
13 years 10 months 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.

More
13 years 10 months ago #75300 by erickb
super

merci

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

Time to create page: 0.166 seconds
Powered by Kunena Forum