Email to friend Template problem

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
William_firefold
Commander (CMDR)
Commander (CMDR)
Posts: 186
Joined: Fri Aug 01, 2008 8:38 am

Email to friend Template problem

Post by William_firefold » Thu Aug 14, 2008 1:58 pm

The "email product to friend" function doesn't find the template properly.

Image

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.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Email to friend Template problem

Post by jmestep » Thu Aug 14, 2008 2:14 pm

Check in the admin and see if you have any email templates there. Maybe whoever installed the software didn't import them.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
William_firefold
Commander (CMDR)
Commander (CMDR)
Posts: 186
Joined: Fri Aug 01, 2008 8:38 am

Re: Email to friend Template problem

Post by William_firefold » Fri Aug 15, 2008 8:36 am

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.

Robbie@FireFold
Commodore (COMO)
Commodore (COMO)
Posts: 433
Joined: Wed May 28, 2008 9:42 am
Location: Concord, NC
Contact:

Re: Email to friend Template problem

Post by Robbie@FireFold » Fri Aug 15, 2008 10:40 am

Judy was the one who actually hooked me up with the template script.

What is the template called that this looks for?
Robbie Hodge
General Manager
Robbie@FireFold.com
http://www.FireFold.com

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Email to friend Template problem

Post by jmestep » Fri Aug 15, 2008 12:02 pm

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
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
William_firefold
Commander (CMDR)
Commander (CMDR)
Posts: 186
Joined: Fri Aug 01, 2008 8:38 am

Re: Email to friend Template problem

Post by William_firefold » Fri Aug 15, 2008 1:30 pm

we have those templates, including the send to friend one.
Where is the function that initiates sending a mail with that template?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Email to friend Template problem

Post by mazhar » Fri Aug 15, 2008 1:43 pm

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.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Email to friend Template problem

Post by mazhar » Fri Aug 15, 2008 1:46 pm

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

User avatar
William_firefold
Commander (CMDR)
Commander (CMDR)
Posts: 186
Joined: Fri Aug 01, 2008 8:38 am

Re: Email to friend Template problem

Post by William_firefold » Fri Aug 15, 2008 2:20 pm

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.

Post Reply