Forums / Managing Customers and Orders / including group discount in welcome email

including group discount in welcome email

Locked

Started by bigbadboy on 8 May 2008, 5:09 PM · Views: 1,277

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
8 May 2008, 5:09 PM
#1
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

including group discount in welcome email

It's really not my day today.
For some reason I am just not 'getting zenned'

In the welcome email, I understand that if you set up a gift voucher this would be announced in the welcome email.

I need to set up around 20 group discounts.
More will be added, and will be selectable when setting up new customers through 'add customers viz admin'.

What I need is to be able to say something like:
"Welcome XXX, You are in XXX group which means you will get a XXX% discount"
in the welcome email.

For the GV block you can use $GV_BLOCK in email_template_welcome but what would the equivalent be for group discounts?

Once again, many thanks!

9 May 2008, 3:14 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: including group discount in welcome email

You would have to add custom code for that into your 'add customers viz admin' mod, and perhaps alter your email template to handle another similar placeholder for your new data.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

9 May 2008, 4:55 PM
#3
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

Re: including group discount in welcome email

Correct me if I am wrong but if I search site wide for anything beginning with $GV_ (gift voucher), I can then create a custom tag $GR_ (group).
As well as add this to the database, is there anything else I would need to do?

10 May 2008, 5:30 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: including group discount in welcome email

I don't understand what good a site-wide search would do. You're customizing an addon module to add functionality, right? You're adding new stuff.

If you want a replacable parameter in your email template, just add one ... call it anything you like ... $THIS_IS_MY_PARAMETER would likely work just fine. Then make sure you set a value for it when you prepare your html-formatted email content.

Additionally, I don't see anything you need to add to the database in order to generate extra content for an outgoing email message.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.