AbanteCart Community

eCommerce construction => Templates => Topic started by: HADY on June 06, 2020, 03:57:59 AM

Title: E-Mail subject required!
Post by: HADY on June 06, 2020, 03:57:59 AM
Hello!


I searched forums but couldn't find anything about this

After Upgrading to latest Version 1.2.16 we are getting next error:


2020-06-06 10:51:32 - Email Template with text id "storefront_welcome_email_approved" and language_id = 9 not found
2020-06-06 10:51:32 - Error: E-Mail subject required!


What is causing this please ?

Thanks
Title: Re: E-Mail subject required!
Post by: maxter on June 06, 2020, 11:47:53 AM
Email Template is a new feature in 1.2.16

My guess, there is no email template for your language. Default English language is 1 and you have 9.

Copy email templates to your language and translate.
Title: Re: E-Mail subject required!
Post by: Basara on June 08, 2020, 03:54:25 AM
The fastest way to copy email templates from the English is to use Load missing data tool
https://abantecart.atlassian.net/wiki/spaces/AD/pages/15302710/Edit+Language#EditLanguage-LoadmissingData

Please backup before the run
Title: Re: E-Mail subject required!
Post by: HADY on June 09, 2020, 04:28:54 AM
Email Template is a new feature in 1.2.16

My guess, there is no email template for your language. Default English language is 1 and you have 9.

Copy email templates to your language and translate.


Thanks for your reply.
Title: Re: E-Mail subject required!
Post by: HADY on June 09, 2020, 04:36:35 AM
The fastest way to copy email templates from the English is to use Load missing data tool
https://abantecart.atlassian.net/wiki/spaces/AD/pages/15302710/Edit+Language#EditLanguage-LoadmissingData

Please backup before the run


Thanks for reply, I think this will effect on already modified localization languages files and take act. I don't recommend this way. The best way is to translate them one by one. but I still have one more question, Shall I translate the contain of Html Body and Text Body together or translating text body only or html body only?? I am Little bit confused what is the correct operation I have to do?


Thanks
Title: Re: E-Mail subject required!
Post by: Basara on June 09, 2020, 04:39:47 AM
Both require translations
Title: Re: E-Mail subject required!
Post by: HADY on June 09, 2020, 04:49:21 AM
Both require translations

Ok, Thanks
Title: Re: E-Mail subject required!
Post by: hani on July 10, 2020, 12:14:19 AM
Hello

I have upgraded from 1.2.15 to 1.2.16 and i am getting a similar error as below

2020-07-09 14:18:24 - Email Template with text id "storefront_new_customer_admin_notify" and language_id = 1 not found
2020-07-09 14:18:24 - Error: E-Mail subject required!
2020-07-09 14:18:24 - Email Template with text id "storefront_welcome_email_activated" and language_id = 1 not found
2020-07-09 14:18:24 - Error: E-Mail subject required!


I have checked the email templates in the Design >> Email templates they are available

Can anyone tell what might be wrong??

Thanks in advance for any advise
Title: Re: E-Mail subject required!
Post by: hani on July 10, 2020, 12:30:19 AM
Hello again

I think i found the problem, i have 2 stores, a retail store and email templates are available and another store for wholesale and here in the second store EMAIL TEMPLATES are not available

What is the easiest way to copy the templates from one store to another?? do i have to do them manually one by one??
Title: Re: E-Mail subject required!
Post by: abolabo on July 10, 2020, 04:29:31 AM
To solve just open phpMyAdmin
and run this query.

NOTE: You need to replace table prefix ac_ with yours and check what ID of your second store. As you see below i set "1 as store_id". If your second store have another - your should to replace with yours too.

Code: [Select]
SET SQL_MODE='';
INSERT INTO `ac_email_templates`
(`status`, `text_id`, `language_id`, `headers`, `subject`, `html_body`, `text_body`, `allowed_placeholders`, `date_deleted`, `store_id`)
SELECT `status`, `text_id`, `language_id`, `headers`, `subject`, `html_body`, `text_body`, `allowed_placeholders`, `date_deleted`, 1 as `store_id`
FROM `ac_email_templates`
WHERE `store_id` = 0;
Title: Re: E-Mail subject required!
Post by: hani on July 10, 2020, 11:58:57 AM
Thanks for your reply