Jump to content
Dan1

[SOLVED] Change color pink customer name email alerts

Recommended Posts

Email alerts module sends a New Order email, customer name is pink. How to change this?

Color is probably the old pink #DB3484.

Could be PS_MAIL_COLOR in modules/ps_emailalerts/ps_emailalerts.php but I don't know what to do with it.

Line 762

            '{invoice_block_txt}' => MailAlert::getFormatedAddress($invoice, "\n"),
            '{delivery_block_html}' => MailAlert::getFormatedAddress(
                $delivery, '<br />', array(
                    'firstname' => '<span style="color:'.$configuration['PS_MAIL_COLOR'].'; font-weight:bold;">%s</span>',
                    'lastname' => '<span style="color:'.$configuration['PS_MAIL_COLOR'].'; font-weight:bold;">%s</span>',
                )
            ),
            '{invoice_block_html}' => MailAlert::getFormatedAddress(
                $invoice, '<br />', array(
                    'firstname' => '<span style="color:'.$configuration['PS_MAIL_COLOR'].'; font-weight:bold;">%s</span>',
                    'lastname' => '<span style="color:'.$configuration['PS_MAIL_COLOR'].'; font-weight:bold;">%s</span>',
  

Edited by Dan1 (see edit history)

Share this post


Link to post
Share on other sites

Well you might be able to do that from the back office but if that doesnt work you can go to the Configuration Table in your database and change it there. Search for name: PS_MAIL_COLOR and put in the hex code of the color you want.

Edited by jetway (see edit history)
  • Thanks 1

Share this post


Link to post
Share on other sites
On 9/4/2019 at 2:32 AM, jetway said:

 go to the Configuration Table in your database and change it there. Search for name: PS_MAIL_COLOR and put in the hex code of the color you want.

This worked thank you.

 

Some further instructions for those unfamiliar working with database (I had to figure this out):

In database search for PS_MAIL_COLOR selecting "the exact phrase as substring" and Select all inside tables. Change the color code in: 1 match in ps_configuration by clicking on Browse and Edit.

 

Edited by Dan1 (see edit history)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More