agrimoto

Utilisateur open source
  • Compteur de contenus

    126
  • Inscrit(e) le

  • Dernière visite


Messages posté(e)s par agrimoto


  1. re bonjour !

    bon je m inspire d un fichier 5.7 de mon ancien site marque php modifi..... par advisto .

    maintenant la date debut et date fin reste

    3% sur la marque " replay "

    je rentre 2012 01 12

    2012 01 15

    la remise de 3% marche n importe quel jour exemple le 10

    CI JOINT mon fichier marque. php pour correction c est vraiment un metier !!!

    <?php

    // This file should be in UTF8 without BOM - Accents examples: éèê

    // +----------------------------------------------------------------------+

    // | Copyright © 2004-2011 Advisto SAS, service PEEL - contact@peel.fr |

    // +----------------------------------------------------------------------+

    // | This file is part of PEEL Shopping 6.3, which is subject to an |

    // | opensource GPL license: you are allowed to customize the code |

    // | for your own needs, but must keep your changes under GPL |

    // | More information: http://www.peel.fr/lire/licence-gpl-70.html |

    // +----------------------------------------------------------------------+

    // | Author: Advisto SAS, RCS 479 205 452, France, http://www.peel.fr/ |

    // +----------------------------------------------------------------------+

    // $Id: marques.php 23015 2011-12-08 13:23:38Z sdelaporte $

    define('IN_PEEL_ADMIN', true);

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

    necessite_identification();

    necessite_priv("admin");

    include("../lib/fonctions/fonctions_admin.php");

    $DOC_TITLE = "Gérer les marques";

    $frm = $_POST;

    include("modeles/haut.php");

    $form_error_object = new FormError();

    switch (vb($_REQUEST['mode'])) {

    case "ajout" :

    affiche_formulaire_ajout_marque($frm, $form_error_object);

    break;

    case "modif" :

    affiche_formulaire_modif_marque($_REQUEST['id'], $frm, $form_error_object);

    break;

    case "suppr" :

    supprime_marque($_REQUEST['id']);

    affiche_formulaire_liste_marque($_REQUEST['id'], $frm);

    break;

    case "supprfile" :

    supprime_fichier(vn($_REQUEST['id']), $_GET['file']);

    affiche_formulaire_modif_marque(vn($_REQUEST['id']), $frm, $form_error_object);

    break;

    case "insere" :

    if (!verify_token($_SERVER['PHP_SELF'] . $frm['mode'] . $frm['id'])) {

    $form_error_object->add('token', INVALID_TOKEN);

    }

    if (!$form_error_object->count()) {

    if (!empty($_FILES['image']['name'])) {

    $img = upload($_FILES['image'], true, 'image', $GLOBALS['image_max_width'], $GLOBALS['image_max_height']);

    }

    insere_sous_marque(vb($img), $_POST);

    echo '<p class="global_success">La marque <b>' . vb($frm['nom_'.$_SESSION["session_langue"]]) . '</b> a été créée.</p>';

    affiche_formulaire_liste_marque($_REQUEST['id'], $frm);

    } else {

    if ($form_error_object->has_error('token')) {

    echo $form_error_object->text('token');

    }

    affiche_formulaire_ajout_marque($frm,$form_error_object);

    }

    break;

    case "maj" :

    if (!verify_token($_SERVER['PHP_SELF'] . $frm['mode'] . $frm['id'])) {

    $form_error_object->add('token', INVALID_TOKEN);

    }

    if (!$form_error_object->count()) {

    if (!empty($_REQUEST['image'])) {

    $img = $_POST['image'];

    } elseif (!empty($_FILES['image']['name'])) {

    $img = upload($_FILES['image'], true, 'image', $GLOBALS['image_max_width'], $GLOBALS['image_max_height']);

    }

    maj_marque(vb($img), $_POST);

    echo '<p class="global_success">Les changements apportés à la marque ' . vn($_POST['id']) . ' ont bien été pris en compte.</p>';

    affiche_formulaire_liste_marque($_REQUEST['id'], $frm);

    } else {

    if ($form_error_object->has_error('token')) {

    echo $form_error_object->text('token');

    }

    affiche_formulaire_modif_marque(vn($_REQUEST['id']), $frm, $form_error_object);

    }

    break;

    case "modif_etat" :

    if (isset($_GET['etat']) && !empty($_GET['id'])) {

    if ($_GET['etat'] == 1) {

    $etat = 0 ;

    } else {

    $etat = 1 ;

    }

    query('UPDATE `peel_marques` SET etat="' . intval($etat) . '" WHERE id="' . intval($_GET['id']) . '"');

    echo '<p class="global_success">Le status de la marque ' . vn($_GET['id']) . ' ont bien été mis à jour.</p>';

    }

    affiche_formulaire_liste_marque($_REQUEST['id'], $frm);

    break;

    default :

    affiche_formulaire_liste_marque($_REQUEST['id'] = 0, $frm);

    break;

    }

    include("modeles/bas.php");

    /**

    * FONCTIONS

    */

    /**

    * affiche_formulaire_ajout_marque()

    *

    * Affiche un formulaire de marques vide

    *

    * @param array $frm Array with all fields data

    * @param class $form_error_object

    * @return

    */

    function affiche_formulaire_ajout_marque(&$frm, &$form_error_object)

    {

    /* Valeurs par défaut */

    $frm = array();

    $frm["nouveau_mode"] = "insere";

    foreach ($GLOBALS['lang_codes'] as $lng) {

    $frm['nom_' . $lng] = "Marque langue $lng";

    $frm['description_' . $lng] = "";

    /* gestion des meta */

    $frm['meta_titre_' . $lng] = "";

    $frm['meta_key_' . $lng] = "";

    $frm['meta_desc_' . $lng] = "";

    }

    /* gestion des promotions sur les marques */

    if (is_marque_promotion_module_active()) {

    $frm["promotion_devises"] = "";

    $frm["promotion_percent"] = "";

    }

    $frm["id"] = "";

    $frm["image"] = "";

    $frm["etat"] = "";

    $frm['position'] = "";

    $frm["titre_soumet"] = "Ajouter une marque";

    affiche_formulaire_marque($frm, $form_error_object);

    }

    /**

    * affiche_formulaire_modif_marque()

    *

    * Affiche le formulaire de modification de marques.

    *

    * @param integer $id

    * @return

    */

    function affiche_formulaire_modif_marque($id, &$frm, &$form_error_object)

    {

    /* Charge les infos de la marques. */

    $qid = query("SELECT *

    FROM peel_marques

    WHERE id = " . intval($id));

    if ($frm = fetch_assoc($qid)) {

    $frm["nouveau_mode"] = "maj";

    $frm["titre_soumet"] = "Sauvegarder les changements";

    /* Affiche la liste des marques, en présélectionnant la marques choisie. */

    affiche_formulaire_marque($frm, $form_error_object);

    } else {

    echo '<p class="global_error">La marque n\'a pas été trouvée.</p>';

    return false;

    }

    }

    /**

    * supprime_marque()

    *

    * Supprime la marques spécifiée par $id, et déplace tous les produits sous

    * cette marques au parent immédiat.

    *

    * @param integer $id

    * @return

    */

    function supprime_marque($id)

    {

    /* Trouve le parent de cette marques */

    $qid = query("SELECT nom_" . $_SESSION['session_langue'] . " as name FROM peel_marques WHERE id = " . intval($id));

    if ($this_brand = fetch_assoc($qid)) {

    /* efface cette marque */

    query("DELETE FROM peel_marques WHERE id = '" . intval($id) . "'");

    $message = '<p class="global_success">La marque <b>' . String::html_entity_decode_if_needed($this_brand['name']) . '</b> a été effacée.</p>';

    $message;

    }

    }

    /**

    * insere_sous_marque()

    *

    * @param mixed $img

    * @param array $frm Array with all fields data

    * @return

    */

    function insere_sous_marque($img, &$frm)

    {

    $sql = "INSERT INTO peel_marques (

    image

    , etat

    , position";

    foreach ($GLOBALS['lang_codes'] as $lng) {

    $sql .= ", nom_" . $lng . ", description_" . $lng;

    $sql .= ", meta_titre_" . $lng;

    $sql .= ", meta_key_" . $lng;

    $sql .= ", meta_desc_" . $lng;

    }

    $sql .= ", promotion_devises, promotion_percent,promotion_type,date_debut,date_fin

    ) VALUES (

    '" . nohtml_real_escape_string($img) . "'

    ,'" . intval(vn($frm['etat'])) . "'

    ,'" . intval($frm['position']) . "'";

    foreach ($GLOBALS['lang_codes'] as $lng) {

    $sql .= ", '" . nohtml_real_escape_string($frm['nom_' . $lng]) . "'";

    $sql .= ", '" . real_escape_string($frm['description_' . $lng]) . "'";

    $sql .= ", '" . nohtml_real_escape_string($frm['meta_titre_' . $lng]) . "'";

    $sql .= ", '" . nohtml_real_escape_string($frm['meta_key_' . $lng]) . "'";

    $sql .= ", '" . nohtml_real_escape_string($frm['meta_desc_' . $lng]) . "'";

    }

    $sql .= ",'" . floatval(vn($frm['promotion_devises'])) . "'

    ,'" . floatval(vn($frm['promotion_percent'])) ."'

    , '" . nohtml_real_escape_string($frm['date_debut']) . "'

    , '" . nohtml_real_escape_string($frm['date_fin']) . "'

    )";

    $qid = query($sql);

    }

    /**

    * maj_marque()

    *

    * @param mixed $img

    * @param array $frm Array with all fields data

    * @return

    */

    function maj_marque($img, &$frm)

    {

    if (vn($frm['promotion_devises']) > 0 || vn($frm['promotion_percent']) > 0) {

    // Va afficher tous les produits de la marque sur la page Promotion du site.

    $promo = "UPDATE peel_produits SET on_promo=1 WHERE id_marque= '" . intval($_POST['id']) . "'";

    } else {

    $promo = "UPDATE peel_produits SET on_promo=0 WHERE id_marque= '" . intval($_POST['id']) . "'";

    }

    query($promo);

    $sql = "UPDATE peel_marques

    SET image = '" . nohtml_real_escape_string($img) . "'";

    foreach ($GLOBALS['lang_codes'] as $lng) {

    $sql .= ", nom_" . $lng . "='" . nohtml_real_escape_string($frm['nom_' . $lng]) . "'";

    $sql .= ", description_" . $lng . "='" . real_escape_string($frm['description_' . $lng]) . "'";

    $sql .= ", meta_titre_" . $lng . " = '" . nohtml_real_escape_string($frm['meta_titre_' . $lng]) . "'";

    $sql .= ", meta_key_" . $lng . " = '" . nohtml_real_escape_string($frm['meta_key_' . $lng]) . "'";

    $sql .= ", meta_desc_" . $lng . " = '" . nohtml_real_escape_string($frm['meta_desc_' . $lng]) . "'";

    }

    $sql .= ", etat = '" . vn($frm['etat']) . "'

    , position = '" . intval($frm['position']) . "'

    , promotion_devises = '" . floatval(vn($frm['promotion_devises'])) . "'

    , promotion_percent = '" . floatval(vn($frm['promotion_percent'])) . "'

    , date_debut = '".nohtml_real_escape_string($frm['date_debut'])."'

    , date_fin = '".nohtml_real_escape_string($frm['date_fin'])."'

    WHERE id = '" . intval($_POST['id']) . "'";

    $qid = query($sql);

    }

    /**

    * Affiche un formulaire de marques vide

    *

    * @param integer $id

    * @return

    */

    function affiche_formulaire_liste_marque($id, &$frm)

    {

    /* Valeurs par défaut */

    $frm = array();

    $frm["nouveau_mode"] = "insere";

    foreach ($GLOBALS['lang_codes'] as $lng) {

    $frm['nom_' . $lng] = "Nom du produit en langue $lng";

    $frm['description_' . $lng] = "";

    }

    $frm["image"] = "";

    $frm["etat"] = "";

    $frm['position'] = "";

    $frm["titre_soumet"] = "Ajouter une marque";

    /* Affiche la liste des marques, en présélectionnant la marques choisie. */

    affiche_liste_marque($frm);

    }

    /**

    * affiche_liste_marque()

    *

    * @return

    */

    function affiche_liste_marque(&$frm)

    {

    $sql = "SELECT m.*

    FROM peel_marques m

    ORDER BY position";

    $Links = new Multipage($sql, 'marques');

    $results_array = $Links->Query();

    echo '

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

    <tr><td colspan="6" class="entete">Liste des marques</td></tr>

    <tr><td colspan="6"><p><a class="normal" href="' . get_current_url(false) . '?mode=ajout">Ajouter une marque</a></p></td></tr>

    <tr>

    <td class="menu">Action</td>

    <td class="menu">Identifiant</td>

    <td class="menu">Image</td>

    <td class="menu">Marque</td>

    <td class="menu">Position</td>

    <td class="menu">Etat</td>

    </tr>

    ';

    if (empty($results_array)) {

    echo '<tr><td class="normal"><b>Aucune marque définie</b></td></tr>';

    } else {

    $i = 0;

    foreach($results_array as $this_brand) {

    echo tr_rollover($i, true) . '

    <td class="normal" align="center"><a onclick="return confirm(\'Etes-vous sûr de vouloir supprimer cette marque ?\');" class="normal" title="Supprimer ' . $this_brand['nom_' . $_SESSION['session_langue']] . '" href=' . get_current_url(false) . '?mode=suppr&amp;id=' . $this_brand['id] . '"><img src="' . $GLOBALS['administrer_url'] . '/images/b_drop.png" alt="drop" /></a>

    <a title="Modifier cette marque" href="' . get_current_url(false) . '?mode=modif&amp;id=' . $this_brand['id'] . '"><img src=' . $GLOBALS['administrer_url] . '/images/b_edit.png" width="16" height="16" alt="" /></a></td>

    <td class="normal" align="center">' . $this_brand['id'] . '</td>

    <td class="normal" align="center">'.(!empty($this_brand['image'])?'<img src=' . $GLOBALS['repertoire_upload] . '/thumbs/' . thumbs($this_brand['image'], 80, 50, 'fit') . '" border="0" />':'').'</td>

    <td class="normal" align="center"><a class="normal" title="Modifier cette marque" href="' . get_current_url(false) . '?mode=modif&amp;id=' . $this_brand['id'] . '">' . String::html_entity_decode_if_needed($this_brand['nom_' . $_SESSION['session_langue']]) . '</a></td>

    <td class="normal" align="center">' . $this_brand['position'] . '</td>

    <td class="petit" align="center"><a href="' . get_current_url(false) . '?mode=modif_etat&amp;id=' . $this_brand['id'] . '&amp;etat= . $this_brand['etat] . '&amp;page='.vb($_GET['page']).'"><img src=' . $GLOBALS['administrer_url] . '/images/' . (empty($this_brand['etat'])?'puce-blanche.gif':'puce-verte.gif') . '" alt="" /></a></td>

    </tr>

    ';

    $i++;

    }

    }

    echo '

    <tr><td align="center" class="normal" colspan="4">' . $Links->GetMultipage() . '</td></tr>

    </table>

    ';

    }

    /**

    * affiche_formulaire_marque()

    *

    * @return

    */

    function affiche_formulaire_marque(&$frm, &$form_error_object)

    {

    echo '

    <form method="post" action="' . get_current_url(false) . '" enctype="multipart/form-data">

    ' . get_form_token_input($_SERVER['PHP_SELF'] . $frm['nouveau_mode'] . intval($frm['id'])) . '

    <input type="hidden" name="mode" value="' . String::str_form_value($frm["nouveau_mode"]) . '" />

    <input type="hidden" name="id" value="' . intval($frm['id']) . '" />

    <table border="0" class="main_table" width="100%">

    <tr>

    <td class="entete" colspan="2">Ajout ou suppression d\'une marque</td>

    </tr>

    <tr>

    <td class="normal">Position' . BEFORE_TWO_POINTS . ':</td>

    <td class="normal"><input size="1" type="text" name="position" value="' . String::str_form_value(String::html_entity_decode_if_needed(vb($frm["position"]))) . '" /></td>

    </tr>

    <tr>

    <td class="normal">Etat' . BEFORE_TWO_POINTS . ':</td>

    <td class="normal">

    <input type="radio" name="etat" value="1" ' . frmvalide(vb($frm['etat']) == "1") . ' />En ligne<br />

    <input type="radio" name="etat" value="0" ' . frmvalide(vb($frm['etat']) == "0" || empty($frm['etat'])) . ' />En attente

    </td>

    </tr>

    ';

    foreach ($GLOBALS['lang_codes'] as $lng) {

    echo '

    <tr><td colspan="2" class="bloc">BLOC DE LANGUE ' . String::strtoupper($lng) . '</td></tr>

    <tr>

    <td class="label" colspan="2">Nom :

    ' . $form_error_object->text('nom_' . $lng) . '

    </td>

    </tr>

    <tr>

    <td colspan="2"><input style="width: 100%" type="text" name="nom_' . $lng . '" value="' . String::str_form_value(String::html_entity_decode_if_needed(vb($frm['nom_' . $lng]))) . '" /></td>

    </tr>

    <tr>

    <td colspan="2" class="label">Description' . BEFORE_TWO_POINTS . ':</td>

    </tr>

    <tr>

    <td colspan="2">' . getTextEditor('description_' . $lng, 760, 500, String::html_entity_decode_if_needed(vb($frm['description_' . $lng]))) . '</td>

    </tr>

    <tr>

    <td colspan="2" class="label">Balise Méta pour le référencement - Titre de la page ' . strtoupper($lng) . '' . BEFORE_TWO_POINTS . ':</td>

    </tr>

    <tr>

    <td colspan="2"><input type="text" name="meta_titre_' . $lng . '" size="70" value="' . $frm['meta_titre_' . $lng] . '" /></td>

    </tr>

    <tr>

    <td colspan="2" class="label">Balise Méta pour le référencement - Mots clés ' . strtoupper($lng) . ' (séparer les mots clés par des virgules)' . BEFORE_TWO_POINTS . ':</td>

    </tr>

    <tr valign="top">

    <td colspan="2"><textarea name="meta_key_' . $lng . '" style="width:100%" rows="2" cols="54">' . strip_tags(String::html_entity_decode_if_needed(nl2br($frm['meta_key_' . $lng]))) . '</textarea></td>

    </tr>

    <tr>

    <td colspan="2" class="label">Balise Méta pour le référencement - Description ' . strtoupper($lng) . '' . BEFORE_TWO_POINTS . ':</td>

    </tr>

    <tr valign="top">

    <td colspan="2"><textarea name="meta_desc_' . $lng . '" style="width:100%" rows="3" cols="54">' . strip_tags(String::html_entity_decode_if_needed(nl2br($frm['meta_desc_' . $lng]))) . '</textarea></td>

    </tr>

    ';

    }

    echo '

    <tr><td colspan="2" class="bloc">INFORMATIONS DIVERSES</td></tr>

    ';

    if (!empty($frm["image"])) {

    echo '

    <tr>

    <td colspan="2" class="label">Image : <br />

    <img src="' . $GLOBALS['repertoire_upload'] . '/' . $frm["image"] . '" /><br />

    Nom du fichier :' . $frm["image"] . '

    <a class="normal" href="' . get_current_url(false) . '?mode=supprfile&amp;id=' . vb($frm['id']) . '&amp;file=image"><img src=' . $GLOBALS['administrer_url] . '/images/b_drop.png" width="16" height="16" alt="" />supprimer cette image</a>

    <input type="hidden" name="image" value="' . String::str_form_value($frm["image"]) . '" />

    </td>

    </tr>

    ';

    } else {

    echo '

    <tr>

    <td colspan="2" class="label">Image' . BEFORE_TWO_POINTS . ':</td>

    </tr>

    <tr>

    <td colspan="2" class="normal"><input style="width: 100%" name="image" type="file" value="" /></td>

    </tr>

    ';

    }

    if (is_marque_promotion_module_active()) {

    echo '

    <tr>

    <td class="label">Remise appliquée sur la marque' . BEFORE_TWO_POINTS . ':</td>

    <td class="normal"><input style="width:100px" type="text" name="promotion_devises" value="' . $frm["promotion_devises"] . '" /> ' . $GLOBALS['site_parameters']['symbole'] . ' TTC

    <input style="width:100px" type="text" name="promotion_percent" value="' . String::str_form_value($frm["promotion_percent"]) . '" />%

    </td>

    </tr>

    <tr>

    <td class="label">Indiquez la date de debut de la promotion (AAAA/MM/JJ):</td>

    <td class="normal"><input style="width:100px" type="text" name="date_debut" value="' . (!empty($frm['date_debut'])? $frm['date_debut']:"0000-00-00 00:00:00") . '" />

    </td>

    </tr>

    <tr>

    <td class="label">Indiquez la date de fin de la promotion (AAAA/MM/JJ):</td>

    <td class="normal"><input style="width:100px" type="text" name="date_fin" value="' . (!empty($frm['date_fin'])? $frm['date_fin']:"0000-00-00 00:00:00") . '" />

    </td>

    </tr>';

    }

    echo '

    <tr>

    <td colspan="2" align="center"><br/><input class="bouton" type="submit" value="' . String::str_form_value($frm["titre_soumet"]) . '" /></td>

    </tr>

    </table>

    </form>

    ';

    }

    /**

    * Supprime le produit spécifié par $id. Il faut supprimer le produit

    * puis les entrées correspondantes de la table produits_marques.

    *

    * @param integer $id

    * @param mixed $file

    * @return

    */

    function supprime_fichier($id, $file)

    {

    /* Charge les infos du produit. */

    switch ($file) {

    case "image":

    $sql = "SELECT image FROM peel_marques WHERE id = '" . intval($id) . "'";

    $res = query($sql);

    $file = fetch_assoc($res);

    query("UPDATE peel_marques SET image = '' WHERE id = '" . intval($id) . "'");

    break;

    }

    @unlink($GLOBALS['uploaddir'] . '/' . $file['image']);

    echo '<p class="global_success">Le fichier <b>' . $file['image'] . ' </b>a été effacé du serveur.</p>';

    }

    ?>


  2. ci joint message d erreur

    Parse error: syntax error, unexpected T_STRING in /home/agrimo13/public_html/modules/marques_promotion/fonctions.php on line 31

    voila ma copie de fichier

    <?php

    // This file should be in UTF8 without BOM - Accents examples: éèê

    // +----------------------------------------------------------------------+

    // | Copyright © 2004-2011 Advisto SAS, service PEEL - contact@peel.fr |

    // +----------------------------------------------------------------------+

    // | This file is part of PEEL Modules 6.3, which is subject to an |

    // | opensource commercial license: you are allowed to customize the code |

    // | for your own needs, but you are NOT entitled to distribute this file |

    // | More information: http://www.peel.fr/lire/licence-commerciale-71.html|

    // +----------------------------------------------------------------------+

    // | Author: Advisto SAS, RCS 479 205 452, France, http://www.peel.fr/ |

    // +----------------------------------------------------------------------+

    // $Id: fonctions.php 23093 2011-12-11 22:07:30Z gboussin $

    //

    if (!defined('IN_PEEL')) {

    die();

    }

    /**

    * get_promotion()

    *

    * @param mixed $id

    * @return

    */

    function get_marque_promotion_by_product($id) {

    static $marque_by_id;

    if(!isset($marque_by_id[$id])){

    // Ces informations ne changent pas en cours d'exécution du script => on met en cache static

    $query_marque = query('SELECT m.nom_'.$_SESSION['session_langue'].' AS nom, MAX(promotion_devises) AS promotion_devises, MAX(promotion_percent) AS promotion_percent

    echo 'SELECT m.nom_'.$_SESSION['session_langue'].' AS nom, MAX(promotion_devises) AS promotion_devises, MAX(promotion_percent) AS promotion

    FROM peel_produits p

    LEFT JOIN peel_marques m ON m.id = p.id_marque

    WHERE p.id = "'.intval($id).'"

    AND "' . date('Y-m-d', time()) . '" BETWEEN m.date_debut AND m.date_fin AND date_debut != "0000-00-00"

    GROUP BY p.id');

    $marque_by_id[$id] = fetch_assoc($query_marque);

    }

    return $marque_by_id[$id];

    }

    ?>


  3. j ai modif..de cette facon mes la date n est pas prise en compte les champs sont bien dans la feuille de l "" admin

    fichier administrer marques.php

    if (is_marque_promotion_module_active()) {

    echo '

    <tr>

    <td class="label">Remise appliquée sur la marque' . BEFORE_TWO_POINTS . ':</td>

    <td class="normal"><input style="width:100px" type="text" name="promotion_devises" value="' . $frm["promotion_devises"] . '" /> ' . $GLOBALS['site_parameters']['symbole'] . ' TTC

    <input style="width:100px" type="text" name="promotion_percent" value="' . String::str_form_value($frm["promotion_percent"]) . '" />%

    </td>

    </tr>

    <tr>

    <td class="label">Indiquez la date de debut de la promotion (AAAA/MM/JJ):</td>

    <td class="normal"><input style="width:100px" type="text" name="date_debut" value="' . (!empty($frm['date_debut'])? $frm['date_debut']:"0000-00-00 00:00:00") . '" />

    </td>

    </tr>

    <tr>

    <td class="label">Indiquez la date de fin de la promotion (AAAA/MM/JJ):</td>

    <td class="normal"><input style="width:100px" type="text" name="date_fin" value="' . (!empty($frm['date_fin'])? $frm['date_fin']:"0000-00-00 00:00:00") . '" />

    </td>

    </tr>';

    }

    echo '

    <tr>

    <td colspan="2" align="center"><br/><input class="bouton" type="submit" value="' . String::str_form_value($frm["titre_soumet"]) . '" /></td>

    </tr>

    </table>

    </form>

    ';

    }


  4. lorsque l ont recherche dans liste des produis cote admin avec la fonction "le produit est il en promotions " oui

    et que dans la gestion du site parametre de la boutique

    Affichage automatique des produits dans la page Promotions :

    Oui Non

    alors la recherche dans l admin liste des produits le produit est il en promotions ne marche pas

    comment regler ce probleme


  5. donc j importe avec un csv mes 13500articles

    je rajoute un champs position et comment remplir cette colonne (le chiffre 1 actif pour chaque article) ci joint un exemple de ligne

    categorie_id reference nom_fr prix prix_achat tva position etat image1 id_marque descriptif_fr on_stock affiche_stock 52 100 STICKER CARBONE (FEUILLE) 3.1 2.7 19.60 1 1 100.jpg STICKER CARBONE (FEUILLE) 0 1 85 101 BLOQUE PISTON 14x125 REPLAY UNIVERSEL 2.7 1.8 19.60 1 1 101.jpg REPLAY BLOQUE PISTON 14x125 REPLAY UNIVERSEL 0 1 51 103 BOUCHON D'HUILE SCOOT REPLAY POUR BOOSTER BLANC 2.5 1.7 19.60 1 1 103.jpg REPLAY BOUCHON D'HUILE SCOOT REPLAY POUR BOOSTER BLANC 0 1


  6. comment puis je avoir page retour et suivant sous la 6.3

    comment renseigner la position dans un import en masse soit 13500 articles

    pourriez vous me donner la conbine pour avoir cette fonction sans devoir renseigner la postion

    comme sur une 5.7 ou 6.2 page retour ou page suivante pour linstant l ai un site sans pouvoir faire defiller des pages c est bizare non !


    1. Cliquez sur sécurité.
    2. Cliquez sur Sites de confiance puis Sites.
    3. Ajouter votre adresse de site Web dans la boîte fournie et cliquez sur ajouter.
    4. Décochez la case qui exige la vérification https .
    5. Cliquez sur l'onglet confidentialité (moyenne est un paramètre acceptable sur le curseur, mais cliquez sur Sites et entrez à nouveau votre adresse de site Web) /
    6. Maintenant cliquez sur autoriser.
    7. Cliquez sur appliquer.

Twitter Advisto ecommerce

Facebook PEEL Shopping