diff --git a/htdocs/product/composition/fiche.php b/htdocs/product/composition/fiche.php index 71807eecb43..8bd7246eeb1 100644 --- a/htdocs/product/composition/fiche.php +++ b/htdocs/product/composition/fiche.php @@ -24,7 +24,7 @@ * \file htdocs/product/composition/fiche.php * \ingroup product * \brief Page de la fiche produit - * \version $Id: fiche.php,v 1.12 2011/08/18 16:16:05 simnandez Exp $ + * \version $Id: fiche.php,v 1.13 2011/08/18 16:32:08 simnandez Exp $ */ require("../../main.inc.php"); @@ -248,7 +248,6 @@ if ($id || $ref) $productstatic->id=$idprod;// $value["id"]; $productstatic->type=$value["fk_product_type"]; $productstatic->ref=$value['label']; - if ($conf->stock->enabled) $productstatic->load_stock(); print ''; print ''.$productstatic->getNomUrl(1).'';; print ''; @@ -288,6 +287,7 @@ if ($id || $ref) print ''; // Number of subproducts + $prodsfather = $product->getFather(); //Parent Products $product->get_sousproduits_arbo (); print ''.$langs->trans("AssociatedProductsNumber").''.sizeof($product->get_arbo_each_prod()).''; print ''; @@ -318,6 +318,28 @@ if ($id || $ref) print ''; print ''; } + + // Number of parent products + print ''.$langs->trans("ParentProductsNumber").''.sizeof($prodsfather).''; + + if(sizeof($prodsfather) > 0) + { + print ''; + print ''.$langs->trans("ProductParentList").'
'; + print ''; + foreach($prodsfather as $value) + { + $idprod= $value["id"]; + $productstatic->id=$idprod;// $value["id"]; + $productstatic->type=$value["fk_product_type"]; + $productstatic->ref=$value['label']; + print ''; + print '';; + print ''; + } + print '
'.$productstatic->getNomUrl(1).'
'; + print ''; + } print ''; @@ -475,5 +497,5 @@ print "\n\n"; $db->close(); -llxFooter('$Date: 2011/08/18 16:16:05 $ - $Revision: 1.12 $'); +llxFooter('$Date: 2011/08/18 16:32:08 $ - $Revision: 1.13 $'); ?>