KonaKart Community Forum

Installation / Configuration => Configuration of KonaKart => Topic started by: pawlorj on January 26, 2009, 10:52:59 am

Title: KonaKart Admin: Customer Communications
Post by: pawlorj on January 26, 2009, 10:52:59 am
Hello,

I'm trying to send an email with a velocity template through the
Customer Communications screen.  Is it documented anywhere what
variables are available for use?  For example, I'm able to use $cust,
but $storeName does not get translated.  $storeName works for the
welcome email sent from the konakart app, but it does not work from the
konakart admin app.  Also, how do I get the text in "Text to merge with
template" to get merged into the email?   I tried using $message, but it
doesn't work.  Here is an excerpt from my velocity template:

message: $message
storeOwner: $storeOwner;
storeName: $storeName
storeOwnerEmailAddr: $storeOwnerEmailAddr


None of these fields get mapped properly, but

Dear $cust.getFirstName() $cust.getLastName() ,

gets mapped fine.

Thanks,

Bob
Title: Re: KonaKart Admin: Customer Communications
Post by: trevor on January 28, 2009, 08:56:23 pm
Take a look at Newsletter_en.vm as an example of merging.

It uses the sendTemplateEmail() Admin App API call. The customer object gets sent in. Other data such as the store name should be put directly in the template.