- Posts: 2696
- Thank you received: 74
product_id et fabricant dans listing.php
14 years 6 months ago #43546
by erickb
product_id et fabricant dans listing.php was created by erickb
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
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.
14 years 6 months ago #43733
by nicolas
Replied by nicolas on topic Re: product_id et fabricant dans listing.php
Ce fichier affiche une liste de produits. Il n'y a donc pas un product_id/fabriquant mais plusieurs.
Ils sont accessible comme ceci:
Ils sont accessible comme ceci:
Code:
$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.
14 years 6 months ago - 14 years 6 months ago #43773
by erickb
Replied by erickb on topic Re: product_id et fabricant dans listing.php
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" />
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: 14 years 6 months ago by erickb.
Please Log in or Create an account to join the conversation.
Time to create page: 0.161 seconds