Page 1 of 1
Email to friend Template problem
Posted: Thu Aug 14, 2008 1:58 pm
by William_firefold
The "email product to friend" function doesn't find the template properly.
I think the prob is in conlib/producttellafriend.ascx around here:
EmailTemplate template = EmailTemplateDataSource.Load(Token.Instance.Store.Settings.ProductTellAFriendEmailTemplateId);
if (template != null)
{
//STRIP HTML
...
It could be as simple as renaming a template, but I dont know.
Any help is appreciated.
Re: Email to friend Template problem
Posted: Thu Aug 14, 2008 2:14 pm
by jmestep
Check in the admin and see if you have any email templates there. Maybe whoever installed the software didn't import them.
Re: Email to friend Template problem
Posted: Fri Aug 15, 2008 8:36 am
by William_firefold
We do have templates installed. We had an issue with that before and someone helped us get the templates in there. The problem seems to be that the email a friend module doesnt know what to look for, or is looking for the wrong thing.
Re: Email to friend Template problem
Posted: Fri Aug 15, 2008 10:40 am
by Robbie@FireFold
Judy was the one who actually hooked me up with the template script.
What is the template called that this looks for?
Re: Email to friend Template problem
Posted: Fri Aug 15, 2008 12:02 pm
by jmestep
Here's a screen shot of templates in our store. Some of the triggers have been changed, but template names have remained the same.
emailtemplates.gif
Re: Email to friend Template problem
Posted: Fri Aug 15, 2008 1:30 pm
by William_firefold
we have those templates, including the send to friend one.
Where is the function that initiates sending a mail with that template?
Re: Email to friend Template problem
Posted: Fri Aug 15, 2008 1:43 pm
by mazhar
Well please try this. In your database check the ac_EmailTempaltes table and find the EmailTemplateId for the template with name Send product to friend and then make sure that in ac_StoreSettings ProductTellAFriendEmailTemplateId entry has the same value in its FieldValue field. I think there is something wrong with these values may be different.
Re: Email to friend Template problem
Posted: Fri Aug 15, 2008 1:46 pm
by mazhar
Also login to the Merchant side and navigate to the store->email->setting page
and then make sure that Send to Friend: option is set to correct template
Re: Email to friend Template problem
Posted: Fri Aug 15, 2008 2:20 pm
by William_firefold
Also login to the Merchant side and navigate to the store->email->setting page
and then make sure that Send to Friend: option is set to correct template
Thanks very much. This was the solution, we didn't know the option existed in admin.