We've received the following error message

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
ghansard
Ensign (ENS)
Ensign (ENS)
Posts: 19
Joined: Tue Jul 02, 2013 12:52 pm

We've received the following error message

Post by ghansard » Tue Aug 27, 2013 1:37 pm

Thanks for any assistance, Greg

Error generating email messages for template 'Shop Order Notification' having subject 'Order Number $order.OrderNumber'.
Exception: Foreach directives must be the only items on the line (comments or contents are not allowed) Stack Trace: at NVelocity.App.VelocityEngine.Evaluate(IContext context, TextWriter writer, String logTag, TextReader reader) at CommerceBuilder.Messaging.NVelocityEngine.Process(Hashtable parameters, String template) at CommerceBuilder.Messaging.EmailTemplate.GenerateMailMessages() at CommerceBuilder.Messaging.EmailTemplate.Send(Boolean async) Inner Exception: Foreach directives must be the only items on the line (comments or contents are not allowed) Inner Exception Stack Trace: at NVelocity.Runtime.Parser.Parser.Parse(TextReader reader, String templateName) at NVelocity.Runtime.RuntimeInstance.Parse(TextReader reader, String templateName, Boolean dumpNamespace) at NVelocity.App.VelocityEngine.Evaluate(IContext context, TextWriter writer, String logTag, TextReader reader)

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

Re: We've received the following error message

Post by jmestep » Wed Aug 28, 2013 4:55 am

It sounds like you might have something else on the line where the #foreach is?
Or you might have opened this up in the WYSIWYG editor and the nVelocity script was corrupted?
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

Post Reply