balam

Utilisateur open source
  • Compteur de contenus

    175
  • Inscrit(e) le

  • Dernière visite


Messages posté(e)s par balam


  1. bonjour,

    à vue de nez il faut créer un champ "magasin" et donner la possibilité au client de cocher cette checkbox, si elle est cochée on ne tient pas compte des frais de port.

    Bonjour et merci pour votre réponse rapide.

    Pour faire plus simple, j'ai fait cela:

    J'ai saisi dans, Gérer les types d'expédition - Enlévement marchandise au magasin.

    Puis, dans- Gérer les tarifs d'expédition par zone / type /poids

    Poids: 0.00

    Tarif 0.00 €

    et ensuite;

    Poids:1000

    Tarifs: 0.00 €

    Cordialement,

    David


  2. Bonjour à tous et bonne fêtes de pâque,

    Après une longue recherche sur le forum, je ne trouve pas la réponse à ma question.

    Dans ma page de paiement cb (installé par Patrice) je ne parviens pas à ne faire apparaitre que 2 chiffres après la virgules (il y a 6 chiffres).

    Je donne ci-dessous, le code qui affiche le montant:

    <p class="normal">

    <b>Adresse de facturation :</b> <br />

    <?php echo nl2br(vb($com->client_info1))?>

    <b>Numéro de la commande :</b> <?php echo vb($com->id)?><br />

    <b>Montant de la commande :</b> <?php echo vb($com->montant,2)?> € TTC<br />

    <b>

    Merci de votre aide.

    Cordialement,

    Balam


  3. en début de page

    Je donne le code de la page facture.html:

    J'ai bien trouvé ou mettre la requête p.reference, puis mettre le champ pour la colonne mais cela ne fonctionne pas.

    <?

    include("../configuration.inc.php");

    /* Charge les d&eacute;tails d'une commande et les affiche */

    $timestamp = urldecode(htmlspecialchars($_GET['timestamp']));

    $id = intval($_GET['id']);

    $mode = htmlspecialchars($_GET['mode']);

    if (!empty($id) && !empty($timestamp)) {

    $qid_commande = mysql_query("SELECT * FROM peel_commandes WHERE id = '$id' AND o_timestamp = '$timestamp'");

    if (mysql_num_rows($qid_commande) > 0) {

    $qid_items = mysql_query("SELECT * FROM peel_commandes_articles WHERE commande_id = '$id'");

    $commande = mysql_fetch_object($qid_commande);

    switch ($mode) {

    case "proforma" :

    $libelle = PROFORMA;

    $numero = $id;

    $date_document = $commande->o_timestamp;

    break;

    case "facture" :

    $libelle = INVOICE;

    $numero = $commande->numero;

    if ($commande->a_timestamp != "0000-00-00") {

    $date_document = $commande->a_timestamp;

    } else {

    $date_document = $commande->o_timestamp;

    }

    break;

    }

    ?>

    <html>

    <head>

    <title><?echo $libelle." ".NUMBER." ".$numero." - ".date("d-m-Y",strtotime($date_document))."";?></title>

    <link REL="stylesheet" type="text/css" href="<?=$stylefile?>">

    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">

    <style type="text/css" media="screen">

    <!--

    <?php

    $sqlCss = "SELECT * FROM peel_css WHERE id = '1'";

    $resCss = mysql_query($sqlCss);

    if ($resCss) {

    $Css = mysql_fetch_object($resCss);

    echo "body {\n";

    if (!empty($Css->background)) {echo "background: #ffffff;\n";}

    if (!empty($Css->textsize)) {echo "font-size: $Css->textsize;\n";}

    if (!empty($Css->textcolor)) {echo "color: $Css->textcolor;\n";}

    if (!empty($Css->textfont)) {echo "font-family: $Css->textfont;\n";}

    echo "}\n";

    if (!empty($Css->textsize)) {echo ".normal { font-size: $Css->textsize;}\n";}

    if (!empty($Css->textcolor)) {echo ".normal { color: $Css->textcolor;}\n";}

    if (!empty($Css->textfont)) {echo ".normal { font-family: $Css->textfont;}\n";}

    if (!empty($Css->textsize)) {echo ".label { font-size: $Css->textsize;}\n";}

    if (!empty($Css->textcolor)) {echo ".label { color: $Css->textcolor;}\n";}

    if (!empty($Css->textfont)) {echo ".label { font-family: $Css->textfont;}\n";}

    if (!empty($Css->textsize)) {echo ".texte { font-size: $Css->textsize;}\n";}

    if (!empty($Css->textcolor)) {echo ".texte { color: $Css->textcolor;}\n";}

    if (!empty($Css->textfont)) {echo ".texte { font-family: $Css->textfont;}\n";}

    if (!empty($Css->titresize)) {echo ".titre { font-size: $Css->titresize;}\n";}

    if (!empty($Css->titrecolor)) {echo ".titre { color: $Css->titrecolor;}\n";}

    if (!empty($Css->titrefont)) {echo ".titre { font-family: $Css->titrefont;}\n";}

    if (!empty($Css->tetieresize)) {echo ".tetiere { font-size: $Css->tetieresize;}\n";}

    if (!empty($Css->tetierecolor)) {echo ".tetiere { color: $Css->tetierecolor;}\n";}

    if (!empty($Css->tetierefont)) {echo ".tetiere { font-family: $Css->tetierefont;}\n";}

    if (!empty($Css->tetierebackground)) {echo ".tetiere { background: $Css->tetierebackground;}\n";}

    if (!empty($Css->tetieresize)) {echo ".entete { font-size: $Css->tetieresize;}\n";}

    if (!empty($Css->tetierecolor)) {echo ".entete { color: $Css->tetierecolor;}\n";}

    if (!empty($Css->tetierefont)) {echo ".entete { font-family: $Css->tetierefont;}\n";}

    if (!empty($Css->tetierebackground)) {echo ".entete { background: $Css->tetierebackground;}\n";}

    if (!empty($Css->alink)) {echo "a:link { color: $Css->alink;}\n";}

    if (!empty($Css->vlink)) {echo "a:visited { color: $Css->vlink;}\n";}

    if (!empty($Css->hlink)) {echo "a:hover { color: $Css->hlink;}\n";}

    }

    ?>

    -->

    </style>

    <script LANGUAGE="JavaScript" SRC="<?=$wwwroot?>/lib/js/window.js"></script>

    </head>

    <body>

    <div class="titre"><?echo $libelle." ".NUMBER." ".$numero." - ".date("d-m-Y",strtotime($date_document))."";?></div>

    <table border="0" cellpadding="5" cellspacing="0" width="50%" bordercolor="#000000">

    </td>

    </b>

    </tr>

    </table>

    <p>

    <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="white">

    <tr>

    <td valign=top width="50%">

    <table border="1" cellpadding="5" cellspacing="1" width="100%" bordercolor="#808080">

    <tr>

    <td bgcolor="#F3E2A0" class="normal"><b><?echo BILL_ADDRESS?></b></td>

    </tr>

    <tr>

    <td class="normal"><?=nl2br(stripslashes($commande->client_info1))?></td>

    </tr>

    </table>

    </td>

    <td valign=top width="50%">

    <table border="1" cellpadding="5" cellspacing="1" width="100%" bordercolor="#808080">

    <tr>

    <td bgcolor="#F3E2A0" class="normal"><b><?echo SHIP_ADDRESS?></b></td>

    </tr>

    <tr>

    <td class="normal"><?=nl2br(stripslashes($commande->client_info2))?></td>

    </tr>

    </table>

    </td>

    </tr>

    </table>

    </p>

    <p>

    <table border="0" cellpadding="3" cellspacing="0" bordercolor="#000000" width="100%" bgcolor="white" style="border:1px solid #000000">

    <tr>

    <td align="center" bgcolor="#F3E2A0" class="label"><?echo PRODUCT?></td>

    <td align="center" bgcolor="#F3E2A0" class="label"><?echo CATALOG_PRICE?></td>

    <td align="center" bgcolor="#F3E2A0" class="label"><?echo UNIT_PRICE?></td>

    <td align="center" bgcolor="#F3E2A0" class="label"><?echo REMISE_PRODUIT ?></td>

    <td align="center" bgcolor="#F3E2A0" class="label"><?echo QUANTITY?></td>

    <td align="center" bgcolor="#F3E2A0" class="label"><?echo TOTAL_PRICE?></td>

    </tr>

    <?

    $ensemble_total_ht = 0;

    $ensemble_total_ttc = 0;

    if ($qid_items) {

    if (mysql_num_rows($qid_items)) {

    while ($prod = mysql_fetch_array($qid_items)) {

    ?>

    <tr>

    <td class="normal">

    <?

    print html_entity_decode(($prod['nom_produit']));

    if ($prod['promotion'] != 0) {print "&nbsp;(-&nbsp; ".$prod['promotion']." % )";}

    if ($prod['delivery_stock'] != '') {print "<br />".DELIVERY_STOCK." : ".$prod['delivery_stock'].".";}

    if ($prod['couleur'] != '') {print "<br />".COLOR." : ".$prod['couleur'].".";}

    if ($prod['taille'] !=') {print "<br />".SIZE." : ".$prod['taille].".";}

    if ($prod['comment'] !=') {print "<br />".COMMENTS." : ".stripslashes($prod['comment]).".";}

    if ($prod['option_prix'] != 0) {print "<br />".OPTION_PRIX." : ".$prod['option_prix']."&euro;";}

    ?>

    </td>

    <td class="normal "align="center"><?php echo $prod['prix_cat']. " &euro;" ?></td>

    <td class="normal "align="center"><?php echo $prod['prix']. " &euro;" ?></td>

    <td class="normal "align="center"><?php echo (!empty($prod['remise_produit'])) ? $prod['remise_produit']. " &euro;" : "";?></td>

    <td class="normal "align="center"><?php echo $prod['quantite'] ?></td>

    <td class="normal "align="center"><?php echo $prod['total_prix']. " &euro;" ?></td>

    </tr>

    <? } ?>

    </table>

    <?

    }

    } ?>

    </p>

    <p>

    <table border="0" cellpadding="3" cellspacing="0" width="100%" style="border:1px solid #000000">

    <tr>

    <td align="left" bgcolor="#FFFFFF" class="normal"><?echo TOTAL_TTC?></td>

    <td align="right" bgcolor="#FFFFFF" class="normal"><?echo fprix($commande->total_produit_avant_promo) ?> &euro;</td>

    </tr>

    <?php

    if ($commande->ecotaxe_ttc > 0) {

    ?>

    <tr>

    <td align="left" bgcolor="#FFFFFF" class="normal">ECOTAXE</td>

    <td align="right" bgcolor="#FFFFFF" class="normal"><?echo fprix($commande->ecotaxe_ttc) ?> &euro;</td>

    </tr>

    <? }

    if ($commande->remise_client_percent > 0) {

    ?>

    <tr>

    <td align="left" bgcolor="#FFFFFF" class="normal"><?echo REMISE_CLIENT." ( ".$commande->remise_client_percent." % )"?></td>

    <td align="right" bgcolor="#FFFFFF" class="normal">- <?echo fprix($commande->remise_client) ?> &euro;</td>

    </tr>

    <? }

    if ($commande->remise_code_percent > 0) {

    ?>

    <tr>

    <td align="left" bgcolor="#FFFFFF" class="normal"><?echo CODE_PROMO_REMISE." ( ".$commande->remise_code_percent." % )"?></td>

    <td align="right" bgcolor="#FFFFFF" class="normal">- <?echo fprix($commande->remise_code) ?> &euro;</td>

    </tr>

    <? }

    if ($commande->remise_cheque > 0) {

    ?>

    <tr>

    <td align="left" bgcolor="#FFFFFF" class="normal"><?echo CHEQUE_CADEAU_REMISE." ( ".$commande->code_cheque_cadeau." )"?></td>

    <td align="right" bgcolor="#FFFFFF" class="normal">- <?echo fprix($commande->remise_cheque) ?> &euro;</td>

    </tr>

    <? }

    if ($commande->remise_bon > 0) {

    ?>

    <tr>

    <td align="left" bgcolor="#FFFFFF" class="normal"><?echo BON_REDUCTION_REMISE." ( ".$commande->code_bon." )"?></td>

    <td align="right" bgcolor="#FFFFFF" class="normal">- <?echo fprix($commande->remise_bon) ?> &euro;</td>

    </tr>

    <? }

    if ($commande->avoir > 0) {

    ?>

    <tr>

    <td align="left" bgcolor="#FFFFFF" class="normal"><?echo AVOIR?></td>

    <td align="right" bgcolor="#FFFFFF" class="normal">- <?echo fprix($commande->avoir) ?> &euro;</td>

    </tr>

    <?php } ?>

    <tr>

    <td align="left" bgcolor="#FFFFFF" class="normal"><?php echo SHIPPING_COST." T.T.C<br />".SHIPPING." : ".$commande->transport.")"?></td>

    <td align="right" bgcolor="#FFFFFF" class="normal">

    <?php

    echo ($commande->cout_transport != 0) ? fprix($commande->cout_transport)." &euro;" : "".OFFERED;

    ?>

    </td>

    </tr>

    <?php

    if ($commande->tarif_paiement > 0) {

    ?>

    <tr>

    <td align="left" bgcolor="#FFFFFF" class="normal"><?echo PAY_COST?></td>

    <td align="right" bgcolor="#FFFFFF" class="normal">+ <?echo fprix($commande->tarif_paiement)?> &euro;</td>

    </tr>

    <? } ?>

    <tr>

    <td align="left" bgcolor="#FFFFFF" class="normal"><?php echo VAT ?></td>

    <td align="right" bgcolor="#FFFFFF" class="normal"><?php echo fprix($commande->total_tva)." &euro;";?></td>

    </tr>

    <tr>

    <td align="right" bgcolor="#F3E2A0" class="label"><?echo NET?></td>

    <td align="right" bgcolor="#F3E2A0" class="label"><b><?php echo fprix($commande->montant)." &euro; T.T.C";?> </td>

    </tr>

    <tr>

    <td align="left" bgcolor="#FFFFFF" class="normal"><?echo PAYEMENT?> </td>

    <td align="right" bgcolor="#FFFFFF" class="normal"><?=$commande->paiement?></td>

    </tr>

    <?php

    if(!empty($commande->colis)) {

    ?>

    <tr><td colspan=2" class="lebel" bgcolor="#F3E2A0">

    <?php

    echo "<b>".COLIS."</b>";

    ?>

    </tr>

    <tr><td colspan=2" class="normal">

    <?php

    echo stripslashes($commande->colis);

    ?>

    </tr>

    <? } ?>

    <?php

    if(!empty($commande->commentaires)) {

    ?>

    <tr><td colspan=2" class="titre" bgcolor="#F3E2A0">

    <?php

    echo "<b>".COMMENTS."</b>";

    ?>

    </tr>

    <tr><td colspan=2" class="normal">

    <?php

    echo stripslashes($commande->commentaires);

    ?>

    </tr>

    <? } ?>

    </table>

    </p>

    <?php

    if ($libelle == PROFORMA) {

    ?>

    <p>

    <div align="right">

    <table border="1" cellpadding="5" cellspacing="0" width="250" bgcolor="#000000">

    <tr>

    <td bgcolor="#FFFFFF" class="label" align="center">

    <i><?echo ACCORD ?></i>

    </td>

    </tr>

    <tr>

    <td bgcolor="#FFFFFF" align="center">

    <div align="center">

    <p class="normal"><i><?echo SIGNATURE ?>

    </i></p>

    </div>

    <div align="center">

    <p class="normal">&nbsp;</p>

    </div>

    <div align="center">

    <p class="normal">&nbsp;

    </div>

    <div align="center">

    <p class="normal">&nbsp;

    </div>

    </td>

    </tr>

    </table>

    </p>

    <? } ?>

    <script language="javascript">

    window.print();

    </script>

    <? } else {

    echo "NO HACK !";

    }

    } else {

    echo "NO HACK !";

    }?>

    </div>

    </body>

    </html>


  4. bonjour,

    dans factures/factures_html a tu p.reference dans la requête ?

    pour placer le code :

     	<?php if (!empty($prod['reference'])) { echo "".$prod['reference']."";} ?>

    Bonjour, bonjour !

    Merci de votre réponse.

    Je ne trouve pas de requête p.reference dans le code de cette page. Vers quel niveau ?

    Cordialement,

    Balam


  5. Bonjour,

    Je ne parviens pas à intégrer le référence du produit dans la facture html.

    Avez-vous une solution ?

    Dans un précédent post, il y avait un début de réponse, mais les directives ne fonctionne pas sur mon script peel 3.8.

    Merci pour vos pistes ou autres.

    Balam


  6. Bonjour,

    Je recherche comment intègrer à côté du nom du produit sa référence.

    J'ai la page template.php ou dans /achat/modeles/produit_details.php.

    Merci de votre réponse.

    Très cordialement,

    Balam

    La solution pour les autres utilisateurs:

    Dans le fichier "Template.php" rajouter au dessus ou là ou vous le souhaitez la ligne ci-dessou:

    echo (!empty($prod['reference'])) ? "<span class=\"titre\">".REFERENCE." ".$prod['reference']."</span><br />" : "";

    Voilà.

    Cordialement,

    Balam

    www.logos-magia.com


  7. Les forums étant ce qu'ils sont il manque le ton de la voix. Soyez assuré que mon message n'a rien d'agressif ou de méprisant.

    Bon courage à vous pour la mise en place mais sachez que bien souvent les contenus défilants, hors contexte particluiers : sites boursiers, sportifs ou autres, ne sont pas des élements indispensables à la viabilité d'un site.

    Merci pour votre précision.

    En effet, j'avais le sentiment d'être en face du buisson-ardent ! ;-))

    Vivement les forums audio/video.

    Cordialement,


  8. Le défilement dont vous parlez ne peut être adapté pour un défilement de droite à gauche.

    N'ayant plus la force de macher le travail pour d'autres, mon âme trouvera néanmoins la charité de vous guider dans vos recherches en vous conseillant de saisir ces exemples de mots clés dans votre fureteur adoré "ajax carousel". Un certain nombre d''exemples, à adapter, vous seront alors fournis.

    Je ne demande pas à ce que l'on me mache le travail.

    Il est possible qu'un utilisateur plus "formé" au script peel que moi, est réussi à faire ce que je souhaite.

    Merci pour le renseignement.

    Cordialement,

    Balam


  9. Bonjour à tous,

    Je souhaite faire apparaitre mes nouveautés sur la page d'accueil et non sur la colonne de droite.

    Je souhaite, pour compliquer le tout, que les images défilent de gauche à droite.

    Peut-être qu'une âme charitable pourra me venir en aide.

    Je fais des recherches sur le forum depuis un moment, mais rien.

    J'ai tenté, sans résultat d'adapter le défilement dans le menu déroulant de la colonne de droite, mais bug sur bug.

    Merci de votre aide

    Cordialement,

    Balam


  10. bonjour Patrice,

    Dans le module CB que vous avez installé, il y a semble t'il une fonction qui vérifie le numéro de la cb du client.

    Est-il possible de supprimer cette fonction "function validateCreditCardNumber($number)"?

    Le problème avec cette fonction c'est que le client n'a pas de message d'erreur au cas ou ce 'vérificateur' détermine que pour lui la carte n'est pas valide.

    Je vous rappelle que j'utilise un serveur sécurisé et que les paiements Cb sont traités par TPE.

    Cordialement,

    Balam


  11. et bien mets l'image2 à une taille plus petit ealors

    sinon tu peux faire à partir du fichier js mais les tailles seront fixes et tes images seront mal dimensionnées puisqu'elles devront respecter une taille "statique"

    Dans ce cas comment faire. Je peux toujours faire un test.

    Le problème, ces que j'ai plus de 2000 images.


  12. sinon tu ne touches à rien et tu mets la 2ième image à la dimension qui te convienne pour faire l'upload, c'est à dire plus grande si j'ai bien suivi

    Merci Paulanna,

    L'image d'origine est de 300 / 300 pixel, alors pour le zoom elle devien très grande (presque environs 1/4 de mon écran)

    Cordialement,

    Balam.


  13. Met ceci alors dans ta page modele\default\template.php :

    trouve la function et remplace la

    Ligne ~501 à 669

    function template_index_produit($id, $where, $form) {
    
    
    global $wwwroot;
    
    global $dirroot;
    
    global $repertoire_images;
    
    global $repertoire_upload;
    
    
    $sqlProd = "
    
    SELECT p.id
    
    , p.nom_".$_SESSION['langue']."
    
    , p.promotion
    
    , p.description_".$_SESSION['langue']."
    
    , p.descriptif_".$_SESSION['langue']."
    
    , p.image1
    
    , p.image2
    
    , p.prix
    
    , p.prix_revendeur
    
    , p.points
    
    , p.comments 
    
    , p.on_stock
    
    , p.affiche_stock
    
    , p.delai_stock
    
    , p.on_check
    
    , p.on_flash
    
    , p.flash_start
    
    , p.flash_end
    
    FROM peel_produits p 
    
    WHERE p.etat = '1' AND p.id = '".intval($id)."' ".$where."";
    
    
    $resProd = mysql_query($sqlProd);
    
    
    $prod = mysql_fetch_array($resProd);
    
    
    	$start = mktime();
    
    
    	$end = mktime(date("H",strtotime($prod['flash_end'])), date("i",strtotime($prod['flash_end'])), date("s",strtotime($prod['flash_end'])), date("m",strtotime($prod['flash_end'])) , date("d",strtotime($prod['flash_end'])), date("Y",strtotime($prod['flash_end'])));
    
    
    	$ecart_secondes = $end - $start;
    
    
    	$ecart_jours = floor($ecart_secondes / (60*60*24));
    
    
    	setlocale(LC_TIME, "fr");
    
    
    	echo "<table border=\"0\" width=\"100%\" height=\"210\" cellpadding=\"0\" cellspacing=\"0\">";
    
    
    	if ($prod['on_flash'] == 1) {
    
    
    	echo "<tr>";
    
    
    	echo "<td class=\"label\" colspan=\"2\" align=\"center\">Il reste $ecart_jours jours avant la fin de la vente flash<br />".FLASH."<br />".FLASH_FROM." ".date("d-m-Y H:i",strtotime($prod['flash_start']))." ".FLASH_TO." ".date("d-m-Y H:i",strtotime($prod['flash_end']))."</td>";
    
    
    	echo "</tr>";
    
    
    	}
    
    
    	echo "<tr>";
    
    
    	echo "<td valign=\"top\" class=\"normal\" width=\"140\" align=\"center\">";
    
    
    	echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"140\" align=\"center\">";
    
    
    	echo "<tr>";
    
    
    	echo "<td class=\"normal\" width=\"100\" height=\"140\" align=\"center\" valign=\"middle\">";
    
    
    	$prix = $prod['prix'] * (1-$prod['promotion']/100);
    
    
    	if (!empty($prod['image2'])) {
    
    
    	echo "<a href=\"achat/produit_details.php?id=".$prod['id']."\" alt=\"".$prod['nom_'.$_SESSION['langue'].'']."\" title=\"".$prod['nom_'.$_SESSION['langue'].'']."\">";
    
    
    	echo "<img class=\"searchImg\" align=\"center\" width=\"70\" alt=\"".$prod['nom_'.$_SESSION['langue'].'']."\" title=\"".$prod['nom_'.$_SESSION['langue'].'']."\" title=\"&nbsp;\" src=\"".$repertoire_upload."/".$prod['image1']."\"
    
    	onmouseover=\"showtrail(
    
    	   '".$repertoire_upload."/".$prod['image2']."',
    
    	   '".$prod['nom_'.$_SESSION['langue'].'']."',
    
    	   '".$prix." &euro;',
    
    	   '5.0000',
    
    	   '1',
    
    	   '1',
    
    	   280,
    
    	   1	);\"
    
    	  onmouseout=\"hidetrail();\" /></a>";
    
    
    	} else { 
    
    
    	 echo "<a href=\"achat/produit_details.php?id=".$prod['id']."\">";
    
    
    	 echo (!empty($prod['image1'])) ? "<img src=\"$repertoire_upload/".$prod['image1']."\" width=\"70\" border=\"0\" title=\"".$prod['nom_'.$_SESSION['langue'].'']."\"/>" : "<img src=\"$wwwroot/images/photo-non-disponible.gif\" width=\"130\" alt=\"photo non disponible\" border=\"0\">";
    
    
    	 echo "</a>";
    
    
    	}
    
    
    	echo "</td></tr><tr><td class=\"normal\" width=\"100%\" align=\"center\">";
    
    
    	affiche_prix($prod['id']);
    
    
    	echo "</td>";
    
    
    	echo "</tr></table>";
    
    
    	echo "</td>";
    
    
    	echo "<td valign=\"top\" class=\"normal\">";
    
    
    	echo "<p><a class=\"titre\" href=\"achat/produit_details.php?id=".$prod['id']."\">".html_entity_decode($prod['nom_'.$_SESSION['langue'].''])."</a></p>";
    
    
    	$sqlBrand = "SELECT m.nom_".$_SESSION['langue']." as nom FROM peel_produits p, peel_produits_marques pm, peel_marques m WHERE pm.produit_id = '".intval($id)."' AND pm.produit_id = p.id AND pm.marque_id = m.id";
    
    
    	$resBrand = mysql_query($sqlBrand);
    
    
    	$Brand = mysql_fetch_object($resBrand);
    
    
    	echo "<p>";
    
    
    	if (mysql_num_rows($resBrand) > 0 ) {
    
    
    	 echo MANUFACTURER." : ".html_entity_decode($Brand->nom)."<br />";
    
    
    	}
    
    
    	//$descriptif = html_entity_decode($prod['descriptif_'.$_SESSION['langue'].'']);
    
    	//$descriptif = substr($descriptif, 0, 40); 
    
    	//$descriptif = substr_replace($descriptif,'...',-3);
    
    	$description = html_entity_decode($prod['description_'.$_SESSION['langue'].'']);
    
    	//$description = substr($description, 0, 40); 
    
    	//$description = substr_replace($description,'...',-3);
    
    
    	//echo "<p>".$descriptif."</p>";
    
    	echo "<p>".$description."</p>";
    
    
    	echo "<img src=\"images/lirelasuite.gif\" align=\"absmiddle\" alt=\"".MORE."\" title=\"".MORE."\">&nbsp;<a href=\"achat/produit_details.php?id=".$prod['id']."\">".MORE."</a>";
    
    
    	if (empty($prod['on_check'])) {
    
    
    	  $prod['on_stock'] == 1 ? affiche_critere_stock1($prod['id'], $prod['affiche_stock'], $form) : affiche_critere_stock0($prod['id'], $form);
    
    
    	} else {
    
    
    	  affiche_check($prod['id'], $form);
    
    
    	}
    
    
    
    	echo "<br />";
    
    
    	$prod['comments'] == 1 ? "<br /><b>".COMMENTS."</b><br /><textarea name=\"comment\" class=\"formulaire1\"></textarea>" : "<input type=\"hidden\" name=\"comment\" class=\"formulaire1\" value=\"\">"; #- Si le produit permet au client de proposer un commentaire
    
    
    	echo "<br />";
    
    
    	echo "</td>";
    
    
    	echo "</tr>";
    
    
    	echo "</table>";
    
    	if (est_identifie()) {
    
    
    	 if (a_priv("admin")) {
    
    
    	  echo "<a href=\"administrer/produits.php?mode=modif&id=".$prod['id']."\" class=\"label\">MODIFIER LE PRODUIT</a>";
    
    
    	 }
    
    
    	}
    
    
    	echo "</div>";
    
    
     }

    Merci Cédric,

    Il y a plus que ce que je voulai (zoom automatique sur l'image), super efficace.

    Bravo pour votre attitude et votre gentillesse.

    Très cordialement,

    Balam


  14. Ce code est à placé dans Achat\Modeles\produit_detail.php

    Ligne ~98 à ~173

    Merci Cédric pour ta réponse.

    Il semble avoir mal exprimé ma demande.

    Alors pour être claire je suis en version 3.8.

    Il y a l'affichage du produit et puis on clique sur plus de détail et on a la page avecen dessous les produits complémentaire.

    Je souhaite faire apparaitre la descrition du produit et non le descritif dans la page ou apparait le produits (page template.php)

    J'ai ce code:

    function template_index_produit($id, $where, $form) {

    global $wwwroot;

    global $dirroot;

    global $repertoire_images ;

    global $repertoire_upload ;

    $sqlProd = "

    SELECT p.id

    , p.nom_".$_SESSION['langue']."

    , p.promotion

    , p.descriptif_".$_SESSION['langue']."

    , p.image1

    , p.image2

    , p.prix

    , p.prix_revendeur

    , p.points

    , p.comments

    , p.on_stock

    , p.affiche_stock

    , p.delai_stock

    , p.on_check

    , p.on_flash

    , p.flash_start

    , p.flash_end

    FROM peel_produits p

    WHERE p.etat = '1' AND p.id = '".intval($id)."' ".$where."";

    $resProd = mysql_query($sqlProd);

    $prod = mysql_fetch_array($resProd);

    $start = mktime();

    $end = mktime(date("H",strtotime($prod['flash_end'])), date("i",strtotime($prod['flash_end'])), date("s",strtotime($prod['flash_end'])), date("m",strtotime($prod['flash_end'])) , date("d",strtotime($prod['flash_end'])), date("Y",strtotime($prod['flash_end'])));

    $ecart_secondes = $end - $start;

    $ecart_jours = floor($ecart_secondes / (60*60*24));

    setlocale(LC_TIME, "fr");

    echo "<table border=\"0\" width=\"100%\" height=\"210\" cellpadding=\"0\" cellspacing=\"0\">";

    if ($prod['on_flash'] == 1) {

    echo "<tr>";

    echo "<td class=\"label\" colspan=\"2\" align=\"center\">Il reste $ecart_jours jours avant la fin de la vente flash<br />".FLASH."<br />".FLASH_FROM." ".date("d-m-Y H:i",strtotime($prod['flash_start']))." ".FLASH_TO." ".date("d-m-Y H:i",strtotime($prod['flash_end']))."</td>";

    echo "</tr>";

    }

    echo "<tr>";

    echo "<td valign=\"top\" class=\"normal\" width=\"140\" align=\"center\">";

    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"140\" align=\"center\">";

    echo "<tr>";

    echo "<td class=\"normal\" width=\"100\" height=\"140\" align=\"center\" valign=\"middle\">";

    $prix = $prod['prix'] * (1-$prod['promotion']/100);

    $resCat = mysql_query("SELECT categorie_id FROM peel_produits_categories WHERE produit_id = '".intval($prod['id'])."'");

    $Cat = mysql_fetch_object($resCat);

    href_link($prod['id'], vn($Cat->categorie_id));

    echo (!empty($prod['image1'])) ? "<img src=\"$repertoire_upload/".$prod['image1']."\" width=\"150\" border=\"0\" title=\"".$prod['nom_'.$_SESSION['langue'].'']."\"/>" : "<img src=\"$wwwroot/images/photo-non-disponible.gif\" width=\"130\" alt=\"photo non disponible\" border=\"0\">";

    echo "</a>";

    if (!empty($prod['image2'])) {

    echo "<div style=\"text-align: center\"><a

    href=\"java script:css_popup(

    '".$repertoire_upload."/".$prod['image2']."',

    '".htmlspecialchars($prod['nom_'.$_SESSION['langue'].''], ENT_QUOTES)."',

    '".fprix($prix)." &euro; ttc'

    );\"

    />zoom</a></div>";

    }

    echo "</td></tr><tr><td class=\"normal\" width=\"100%\" align=\"center\">";

    affiche_prix($prod['id']);

    echo "</td>";

    echo "</tr></table>";

    echo "</td>";

    echo "<td valign=\"top\" class=\"normal\">";

    echo "<p>";

    href_link_titre($prod['id'], vn($Cat->categorie_id));

    echo html_entity_decode($prod['nom_'.$_SESSION['langue'].''])."</a></p>";

    $sqlBrand = "SELECT m.nom_".$_SESSION['langue']." as nom FROM peel_produits p, peel_produits_marques pm, peel_marques m WHERE pm.produit_id = '".intval($id)."' AND pm.produit_id = p.id AND pm.marque_id = m.id";

    $resBrand = mysql_query($sqlBrand);

    $Brand = mysql_fetch_object($resBrand);

    echo "<p>";

    if (mysql_num_rows($resBrand) > 0 ) {

    echo MANUFACTURER." : ".html_entity_decode($Brand->nom)."<br />";

    }

    $descriptif = html_entity_decode($prod['descriptif_'.$_SESSION['langue'].'']);

    $descriptif = substr($descriptif, 0, 40);

    echo "<p>".$descriptif."</p>";

    if (empty($prod['on_check'])) {

    echo "<img src=\"images/lirelasuite.gif\" align=\"absmiddle\" alt=\"".MORE."\" title=\"".MORE."\">&nbsp;<a href=\"achat/produit_details.php?id=".$prod['id']."\">".MORE."</a>";

    $prod['on_stock'] == 1 ? affiche_critere_stock1($prod['id'], $prod['affiche_stock'], $form) : affiche_critere_stock0($prod['id'], $form);

    } else {

    affiche_check($prod['id'], $form);

    }

    echo "<br />";

    $prod['comments'] == 1 ? "<br /><b>".COMMENTS."</b><br /><textarea name=\"comment\" class=\"formulaire1\"></textarea>" : "<input type=\"hidden\" name=\"comment\" class=\"formulaire1\" value=\"\">"; #- Si le produit permet au client de proposer un commentaire

    echo "<br />";

    echo "</td>";

    echo "</tr>";

    echo "</table>";

    if (est_identifie()) {

    if (a_priv("admin")) {

    echo "<a href=\"administrer/produits.php?mode=modif&id=".$prod['id']."\" class=\"label\">MODIFIER LE PRODUIT</a>";

    }

    }

    echo "</div>";

    }

Twitter Advisto ecommerce

Facebook PEEL Shopping