Page 1 of 1

Enhance Email Templates Processing

Posted: Mon Jun 01, 2009 8:05 am
by ZLA
Right now, we only have the ability to modify email templates but not when or how they are called. I'm wondering if it's possible to provide a code interface that is called by the system but that could be modified for customization.

For example, if we could hook in to the CommerceBuilder.Messaging.EmailTemplate.Send method we would have the ability to customize email functionality. For example, we could replace the standard vendor notification (one email for all vendors in an order) with multiple emails (one for each vendor) without having to code for custom order statuses in several locations.

Re: Enhance Email Templates Processing

Posted: Thu Jun 04, 2009 1:55 pm
by ZLA
Another idea is to provide a generic name/value pair table that can be accessed via a new nVelocity object. It could be essentially a simple collection. A step above simple would be to create the table with a number of optional foreign key references to simplify usage. For example a simple table like the following:
  • NameValueId
  • StoreId
  • Name
  • Value
  • OrderId
  • OrderItemId
  • ProductId