product_id et fabricant dans listing.php

  • Posts: 2607
  • Thank you received: 65
12 years 1 month ago #43546

Bonjour

savez vous comment récupérer le product_id et le fabricant (category --> manufacturer) dans ./templates/MTPL/html/com_hikashop/product/listing.php

merci

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

  • Posts: 81604
  • Thank you received: 13082
  • MODERATOR
12 years 1 month ago #43733

Ce fichier affiche une liste de produits. Il n'y a donc pas un product_id/fabriquant mais plusieurs.

Ils sont accessible comme ceci:

$class = hikashop_get('class.category');
foreach($this->rows as $row){
 echo $row->product_id;
 $manufacturer = $class->get($row->product_manufacturer_id);
 echo $manufacturer->category_name;
}

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

  • Posts: 2607
  • Thank you received: 65
12 years 1 month ago #43773

merci

mais je cherche a recuperer dans le listing l'id de l'unique produit affiche celui de la fiche produit
celui de l'input hidden
<input type="hidden" name="product_id" value="2344" />

Last edit: 12 years 1 month ago by erickb.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum