Anthony Posted April 18, 2018 Share Posted April 18, 2018 Bonjour, Je voudrais à un moment envoyer un mail au client avec le template 'shipped'. Mais je comprends pas comment fonctionne la gestion d'envois des emails dans prestashop. Quelqu'un sait-il si c'est possible d'envoyer un mail dans un tpl ? Link to comment Share on other sites More sharing options...
Mediacom87 Posted April 18, 2018 Share Posted April 18, 2018 Bonjour, les mail sont envoyé par la classe Mail.php donc vous devriez regarder de ce côté. Link to comment Share on other sites More sharing options...
doekia Posted April 18, 2018 Share Posted April 18, 2018 (edited) je ne suis pas sûr de comprendre la question ? Un mail dans un tpl ? Au choix: Envoyer un mail construit depuis un template tpl? Envoyer un mail depuis le template de mail shipped.html et shipped.txt Envoyer un mail depuis un page construite au travers de smarty et donc d'un tpl Regarde le module mailalerts si tu veux comprendre comment envoyer un mail depuis un module Edited April 18, 2018 by doekia (see edit history) Link to comment Share on other sites More sharing options...
Anthony Posted April 18, 2018 Author Share Posted April 18, 2018 Just now, doekia said: je ne suis pas sûr de comprendre la question ? Un mail dans un tpl ? Au choix: Envoyer un mail construit depuis un template tpl? Envoyer un mail depuis le template de mail shipped.html et shipped.txt Envoyer un mail depuis un page construire au travers de smarty et donc d'un tpl Regarde le module mailalerts si tu veux comprendre comment envoyer un mail depuis un module Oui se serait plutôt : Envoyer un mail depuis un page construire au travers de smarty et donc d'un tpl Link to comment Share on other sites More sharing options...
doekia Posted April 18, 2018 Share Posted April 18, 2018 Alors ce n'est pas vraiment possible. Enfin pas comme tu l'entends. Une page peut contenir un lien (ajax ou pas) qui appellera une fonction qui envoi un mail. Une page, c'est du html et le html c'est du "texte". Est-ce qu'une page d'un livre peut envoyer un mail ? Non, ici non plus. Link to comment Share on other sites More sharing options...
Anthony Posted April 18, 2018 Author Share Posted April 18, 2018 D'accord mais avec un ajax ça pourrait m'intéresser, avez-vous des pistes ? Link to comment Share on other sites More sharing options...
doekia Posted April 18, 2018 Share Posted April 18, 2018 (edited) 2 hours ago, doekia said: Regarde le module mailalerts si tu veux comprendre comment envoyer un mail depuis un module Ou le module sendtoafriend dixit Edited April 18, 2018 by doekia (see edit history) Link to comment Share on other sites More sharing options...
Anthony Posted April 19, 2018 Author Share Posted April 19, 2018 20 hours ago, doekia said: Ou le module sendtoafriend dixit Merci je vais regarder du coup Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now