Patrick21 3 Posted January 5, 2010 Posted January 5, 2010 Je découvre PS, et je le trouve génial pour mes besoins, je l’ai intallé sur mon Synology DS209+ et cela fonctionne sans soucisj’ai besoin d’une aide pour :lors de l’envoi de mail la variable “shop_url” est http://monserveur/repertoire/comment modifier cette variable en http://monnomdomaine.fr ?je n'arrive pas à trouver ou elle est crééPatrick Share this post Link to post Share on other sites
Patrick21 3 Posted January 5, 2010 Posted January 5, 2010 je me reponds a moi-meme, j'ai enfin trouvédans le fichier /classes/mail.phpremplacement ligne :$templateVars['{shop_url}'] = 'http://'.htmlspecialchars($_SERVER['HTTP_HOST'], ENT_COMPAT, 'UTF-8').__PS_BASE_URI__; par :$templateVars['{shop_url}'] = 'http://www.mondomaine.fr/';et j'en ai profité pour supprimé dans le sujet du mail "[nom de boutique]" qui est déjà dans l'expéditeuren remplacant la ligne :$message = new Swift_Message('['.Configuration::get('PS_SHOP_NAME').'] '.((is_array($_LANGMAIL) AND key_exists($subject, $_LANGMAIL)) ? $_LANGMAIL[$subject] : $subject)); par :$message = new Swift_Message(((is_array($_LANGMAIL) AND key_exists($subject, $_LANGMAIL)) ? $_LANGMAIL[$subject] : $subject));voila c'est pas si compliqué les modifs phpPatrick Share this post Link to post Share on other sites
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