PrestaShop Forums: [Résolu] Créer un nouveau template de mail - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


[Résolu] Créer un nouveau template de mail


[Résolu] Créer un nouveau template de mail

#1 cadeaumaestro

    PrestaShop Apprentice

  • 08 Mar 2010
  • Members
  • PipPip
  • 81 posts

Posted 29 July 2010 - 04:26 PM

Bonjour à tous,

Je cherche à créer un nouveau template de mail, que je glisserai dans le dossier mail. Il sera appeler via un formulaire avec la fonction Mail::Send.

Ma question est : où se fait l'association entre les fichiers templates emails et le paramètre template de la fonction Send() ?

Exemple : 'Message from contact form' appelle le mail "contact.html"...

Merci d'avance !!
--
Sylvain
Trouver votre cadeau !

#2

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 29 July 2010 - 05:37 PM

Bonjour,

je continue avec ton exemple du contact-form.php

(Mail::Send(intval($cookie->id_lang), 'contact', 'Message from contact form',


Ce qui fait appel au contact.html ou txt, c'est tout simplement 'contact' de la ligne precedente.

#3

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 30 July 2010 - 08:10 AM

Merci pour ta réponse eltitos !

J'ai testé, et c'est tout bon ! C'est très simple finalement ...
J'ai confondu apparemment le template avec le titre du mail :)

Merci encore !

#4

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 30 July 2010 - 08:27 AM

Je mets donc le topic en [Résolu].
Merci de penser à le faire la prochaine fois en ajoutant [Résolu] au début du titre en éditant le premier post du topic. ;-)

Merci de consulter les règles du forum et conseils d'utilisation.

#5

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 30 July 2010 - 08:36 AM

En effet, désolé ! Merci :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users