champ perso du fabricant dans fiche produit

  • Posts: 2595
  • Thank you received: 62
  • Hikashop Business
7 years 3 months ago #256625

-- HikaShop version -- : 264
-- Joomla version -- : 364

Bonjour

j'ai fais un champ perso pour les fabricants (category_origine) pour avoir un label made in france ou made in europe sur tous les produits qui sont dans les marques concernees
comment je peux recuperer (sans SQL query) dans show_defaul.php le category_origine du fabricant ?

merci

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

  • Posts: 81363
  • Thank you received: 13037
  • MODERATOR
7 years 3 months ago #256630

Bonjour,

Comme ceci:

<?php
$class = hikashop_get('class.category');
$manufacturer = $class->get($this->element->product_manufacturer_id);
echo $manufacturer->category_origine;
?>

The following user(s) said Thank You: erickb

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

  • Posts: 2595
  • Thank you received: 62
  • Hikashop Business
7 years 3 months ago #256670

genial !

merci beaucoup

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

Time to create page: 0.060 seconds
Powered by Kunena Forum