Rhapsody Posted October 16, 2011 Share Posted October 16, 2011 I have modified the color scheme on the mail templates from the Pink Prestashop standard to a Blue style by modifying the hexadecimal color definitions in the mail templates. There is one template order_conf.html that contains {delivery_block_html} and {invoice_block_html} that displays Delivery & Billing Address information. The names that are displayed when these html blocks are filled use the Prestashop Pink formatted font. I've attached a screen shot of an actual order confirmation message. Does anyone know where I need to look to find the proper color definition to change the color of the names in these two blocks? Link to comment Share on other sites More sharing options...
Rhapsody Posted November 9, 2011 Author Share Posted November 9, 2011 I found it. There are two php files that need to be edited. One is for the email message the customer receives and the other sent to the address configured in the mail alert module. open these files and search for color:#DB3484; (occurs in 4 places for each file). You can delete that which makes the font dark grey per the CSS file, or put any other color you want. I just deleted the text modules/mailalerts/mailalerts.php and classes/PaymentModule.php - for this module I created an override file from 1.4.5.1 source and placed it in override/classes I have also attached the override file here for those who may want to eliminate the pink text. PaymentModule.php 1 Link to comment Share on other sites More sharing options...
akzidenz Posted November 30, 2011 Share Posted November 30, 2011 Wow. Can't believe the color is defined in the php files... Thanks for that Rhapsody! Link to comment Share on other sites More sharing options...
justinl Posted January 5, 2012 Share Posted January 5, 2012 Thanks Rhapsody for tracking that down. Very helpful! Is there any reason you have also included the _getTxtFormatedAddress() and _getFormatedAddress() methods in your override files? I see there is no change from them compared to the original class, so I'm thinking it's a bit redundant. Justin Link to comment Share on other sites More sharing options...
Rhapsody Posted January 5, 2012 Author Share Posted January 5, 2012 I didn't strip out everything in the function when I cut and paste into the override file. If it works as a "skinnier" override with that stripped out, than much better! Link to comment Share on other sites More sharing options...
justinl Posted January 6, 2012 Share Posted January 6, 2012 Yah, because you didn't make any changes to those methods there's no reason to have them in the override. Otherwise people might think they have a new function which can be confusing if you aren't familiar with code. Cheers and thanks for finding that bit of code. Link to comment Share on other sites More sharing options...
ijaure Posted March 14, 2012 Share Posted March 14, 2012 thanks! that was SUPER CLEAR!! Link to comment Share on other sites More sharing options...
Dan1 Posted May 15, 2012 Share Posted May 15, 2012 (edited) Thank you Rhapsody, I would never have found that on my own. What is the purpose of the override file? All I need is to change the color of the text which looks like I achieved by editing the text 4 times in each of the two files. Do I need the override file for anything else? Edited May 15, 2012 by Dan1 (see edit history) 1 Link to comment Share on other sites More sharing options...
imstef Posted September 27, 2012 Share Posted September 27, 2012 Thank you Rhapsody, I would never have found that on my own. What is the purpose of the override file? All I need is to change the color of the text which looks like I achieved by editing the text 4 times in each of the two files. Do I need the override file for anything else? I have the exact same question. What is the purpose of the override file? Thanks a lot for your help! That pink color was SH**Y! 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