Gold R10 Deleting email template does not delete the file

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Gold R10 Deleting email template does not delete the file

Post by AbleMods » Wed Jan 06, 2016 11:20 am

I'm confused about how managing the files used by email templates in Gold R10.

Any given client of mine has two email template folders:

/App_Data/EmailTemplates/1/
/App_Data/EmailTemplates/Default/

In the past, if an email template was customized, it would have a delete icon in the email template list. Clicking the delete caused the email template content to revert to the default template found in /Default/. If you didn't see the delete icon, you knew that email template was unmodified and the content would pull from the /defaults/ folder.

Now, that doesn't seem to be the case. If I click Delete on the "Send Product to Friend" email template, the template disappears entirely from the list. And worse, the html file is left behind on the server. Both in the /1/ folder and in the /Default/ folder.

So, with that said....what good is the /default/ folder? And why isn't the html file cleaned up?

Clients sometimes mess up a template. It's easy to do with the nVelocity involved. It would seem more elegant to have a way to revert a template to it's default content without having to locate the original Able install files.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
Naveed
Rear Admiral (RADM)
Rear Admiral (RADM)
Posts: 611
Joined: Thu Apr 03, 2008 4:48 am

Re: Gold R10 Deleting email template does not delete the file

Post by Naveed » Thu Jan 07, 2016 12:21 am

I like the suggestion to allow reverting email templates to default/original contents. The "/App_Data/EmailTemplates/Default/" folder contains the original email template files, so only location we need cleanup is "/App_Data/EmailTemplates/1/" folder. I am going to log an issue for this.

Post Reply