intandem Posted September 22, 2016 Share Posted September 22, 2016 Hi! In the new_order email template, I would like to be able to apply a different style to the actual customer message {message} but NOT the payment transaction information part that also comes through here. However, if I apply a style to the <span> around {message}, everything gets affected by this style. My client tells me that her admin staff often overlook the customer comment here because they're so used to the routine payment transaction info in that field, they don't look closely enough to see if any extra info is there. So even if I style the whole thing big and bold, the actual customer message will not stand out from the rest. Is there any place where I can edit the code represented by the {message} element? Thanks! <td style="padding: 7px 0;"> <p style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 14px; padding-bottom: 0px;" data-html-only="1">ADDITIONAL Customer COMMENT:</p> <span style="color: #000000; font-family: Open-sans, sans-serif; font-size: 20px; font-weight: bold;"> {message} </span></td> <td style="padding: 7px 0;" width="10"> </td> Link to comment Share on other sites More sharing options...
rocky Posted September 23, 2016 Share Posted September 23, 2016 The message variable is created on line 404 of modules/mailalerts/mailalerts.php: '{message}' => $message You can modify the $message variable before it is assigned. Link to comment Share on other sites More sharing options...
sensazionegrafica Posted February 12, 2017 Share Posted February 12, 2017 (edited) Is it possible to hide the payment transaction information that appears after the customer message? Thanks Edited February 12, 2017 by sensazionegrafica (see edit history) Link to comment Share on other sites More sharing options...
sensazionegrafica Posted February 14, 2017 Share Posted February 14, 2017 The message variable is created on line 404 of modules/mailalerts/mailalerts.php: '{message}' => $message You can modify the $message variable before it is assigned. Is it possible to hide the payment transaction information that appears after the customer message? Thanks Link to comment Share on other sites More sharing options...
rocky Posted February 16, 2017 Share Posted February 16, 2017 You'll need to override the MailAlerts::getAllMessages($id) function and add a WHERE clause to exclude payment transaction messages. It's hard to be more specific without actually knowing the format of the payment transaction information. 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