Walrus Posted December 19, 2014 Share Posted December 19, 2014 When Prestashop sends an email (e.g. password reminder), it capitalises the greeting as HI YOUR NAME. This looks really ugly. How do I change the greeting so, one, it's not in 'all caps' and, two, echoes the logged in greeting. For example: Hello, Your Name! Thanks. Link to comment Share on other sites More sharing options...
tuk66 Posted December 19, 2014 Share Posted December 19, 2014 Search for text-transform:uppercase in all email templates in /mails/*/* folder and remove this text. For English order confirmation, the email template is /mails/en/order_conf.html. 1 Link to comment Share on other sites More sharing options...
Walrus Posted December 19, 2014 Author Share Posted December 19, 2014 Thanks for the quick reply. I was editing the txt files and getting nowhere. While waiting for a reply, I edited password_query.html and managed to get what I wanted by changing the style from uppercase to none, and the greeting. Thanks for the heads up regarding order_conf.html, which I have also edited. Not sure why the Prestashop team chose such an ugly in your face type of greeting style. Would have helped if they used a variable that we can easily edit via the back office. Link to comment Share on other sites More sharing options...
WSH90 Posted December 20, 2014 Share Posted December 20, 2014 Thanks for the quick reply. I was editing the txt files and getting nowhere. While waiting for a reply, I edited password_query.html and managed to get what I wanted by changing the style from uppercase to none, and the greeting. Thanks for the heads up regarding order_conf.html, which I have also edited. Not sure why the Prestashop team chose such an ugly in your face type of greeting style. Would have helped if they used a variable that we can easily edit via the back office. Yeah your had given a solution for yourself, that's great! However I would prefer remove the code "text-transform:uppercase;" to make the code clean. But in some case when customer fill in their firs/last name without capitalize the first character, "text-transform:capitalize;" will be more proper when they receive email from your shop. For example I register my first and last name as john doe, the output will be: "text-transform:uppercase;" : JOHN DOE "text-transform:capitalize;" : John Doe "text-transform:none;" : john doe You may find out more at w3school. Link to comment Share on other sites More sharing options...
Walrus Posted December 20, 2014 Author Share Posted December 20, 2014 I only know CSS enough to be dangerous! Can you see any problem with 'text-transform: capitalize;'? That would cover the 'john doe' scenario. Link to comment Share on other sites More sharing options...
WSH90 Posted December 20, 2014 Share Posted December 20, 2014 I only know CSS enough to be dangerous! Can you see any problem with 'text-transform: capitalize;'? That would cover the 'john doe' scenario. Sorry I dont really understand what you mean, however I am confidence to what I wrote and will apply the change to my own store. What's wrong with my example by the way? Link to comment Share on other sites More sharing options...
Walrus Posted December 20, 2014 Author Share Posted December 20, 2014 It's perfect. I misread. Thanks. Link to comment Share on other sites More sharing options...
WSH90 Posted December 20, 2014 Share Posted December 20, 2014 (edited) It's perfect. I misread. Thanks. Thanks for the clarification =) May I have the link for your online store? Edited December 20, 2014 by WSH90 (see edit history) 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