Jump to content

restore default email templates


dmcfull

Recommended Posts

Hi, over the time I´ve had several character issues with my templates, and I´m trying to start over.

The emailtemplates.sql from the installation script inserts 25 email templates to the table, but my installation currently has 47.

Where are the other 22 templates?

 

Thanks

Link to comment
Share on other sites

One thing I realised is that the default language doesn´t apply to email templates. Despite I have spanish language as default in whmcs, if a new client logs in, the display language is spanish, but the emails are sent in english (it uses the default template from the table where language = '') unless client specifies in their profile spanish language instead of default.

 

A workaround for this, without having to copy/paste all templates over default ones is to run a query like this

 

Update

tblemailtemplates as t1

inner join (

select t2.name, t2.subject, t2.message

from tblemailtemplates as t2

where language = 'Spanish'

) as A on t1.name = A.name

set t1.subject = A.subject, t1.message = A.message

where language = '';

Link to comment
Share on other sites

  • 8 months later...

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated