nom du fabricant dans la fiche poduit

  • Posts: 2605
  • Thank you received: 65
  • Hikashop Business
11 years 5 months ago #75236

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: 11 years 5 months ago by erickb.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 5 months ago #75296

Bonjour,

Pour récupérer le nom du fabricant, vous pouvez utiliser le 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.

  • Posts: 2605
  • Thank you received: 65
  • Hikashop Business
11 years 5 months ago #75300

super

merci

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

Time to create page: 0.066 seconds
Powered by Kunena Forum