Zen Cart Logo
Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / Manually Email Discount Coupons to Customers

Manually Email Discount Coupons to Customers

Locked

Views: 2,837

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
15 Sep 2007, 12:13 AM
#1
all4coffee avatar

all4coffee

Zen Follower

Join Date:
Jul 2007
Posts:
154
Plugin Contributions:
0

Manually Email Discount Coupons to Customers

I set up a signup/welcome coupon which is sent to customers on account creation automatically and the zecart sends them then a welcome email which includes all coupon details I specified in the coupon description. Great!

I also created another coupon which I want manually send to selected customers. When I was testing it I discovered that the email which is sent manually does not include the coupon details (unless I replace the default prase "We're pleased to offer you a store coupon" with coupon details myself. I would like to replace the "We're pleased to offer you a Store Coupon" text with the coupon details OR if this is not possible to replace it at least with the link to the coupon information page where the customer can type in the coupon into the coupon serach box to find out what is the discount he/she is getting.

I tried to locate the "We're pleased to offer you a Store Coupon" default text string via developer's tool but it could find any files containing it...

Could someone please help?

15 Sep 2007, 2:14 AM
#2
all4coffee avatar

all4coffee

Zen Follower

Join Date:
Jul 2007
Posts:
154
Plugin Contributions:
0

Re: Manually Email Discount Coupons to Customers

all4coffee:

I set up a signup/welcome coupon which is sent to customers on account creation automatically and the zecart sends them then a welcome email which includes all coupon details I specified in the coupon description. Great!

I also created another coupon which I want manually send to selected customers. When I was testing it I discovered that the email which is sent manually does not include the coupon details (unless I replace the default prase "We're pleased to offer you a store coupon" with coupon details myself. I would like to replace the "We're pleased to offer you a Store Coupon" text with the coupon details OR if this is not possible to replace it at least with the link to the coupon information page where the customer can type in the coupon into the coupon serach box to find out what is the discount he/she is getting.

I tried to locate the "We're pleased to offer you a Store Coupon" default text string via developer's tool but it could find any files containing it...

Could someone please help?

I now discovered that the coupon details do show in email notifications sent to customer only when customer selected the rich text format at sign-up. If they selected "text" at sign-up as a preference the coupon notification does not include coupon details. I located coupon_admin.phd - I think this is the file which I need to edit. What and where I need to to insert so the coupon details are being sent to "text" email customers?

22 Sep 2007, 5:15 AM
#3
all4coffee avatar

all4coffee

Zen Follower

Join Date:
Jul 2007
Posts:
154
Plugin Contributions:
0

Re: Manually Email Discount Coupons to Customers

When working with coupons I noticed that the coupon_admin.php file (located in admin/includes/languages/english) which seems to be generating customer notification in text format somehow fails to include the coupon_description content. There is no problem with rich text generated email notifications re: the very same coupon. I tested on different coupons, all have valid coupon descriptions. Is this a possible bug?

On another hand both text and rich text formatted welcome email notifications do include full description of the signup coupon offer I specified. This tells me that the same should be working for manually sent emails regarding other coupons.

Possibly I'm wrong in my assumption and this is not a bug but my lack of experience. I've been working with ZenCart for the past 2 months and started from "zero" knowledge re: php concept, however I lerned to admire the clarity and the overall QUALITY of your product. My site is far from ready but here is the link:

http://www.time-co.com/zencart/

I'm also looking for a recommendation of a decent programmer I could hire to help me with some stuff I'm not able to do myself ...

I would really appreciate your help

22 Sep 2007, 5:25 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Manually Email Discount Coupons to Customers

/admin/coupon_admin.php

find this line:$message .= TEXT_REMEMBER . "\n\n";add a new line below it, like this:```
$message .= TEXT_REMEMBER . "\n\n";
[B] $message .=(!empty($coupon_name->fields['coupon_description']) ? $coupon_name->fields['coupon_description'] . "\n\n" : '');
[/B]

23 Sep 2007, 5:01 AM
#5
all4coffee avatar

all4coffee

Zen Follower

Join Date:
Jul 2007
Posts:
154
Plugin Contributions:
0

Re: Manually Email Discount Coupons to Customers

DrByte:

/admin/coupon_admin.php

find this line:$message .= TEXT_REMEMBER . "\n\n";add a new line below it, like this:```
$message .= TEXT_REMEMBER . "\n\n";
[B] $message .=(!empty($coupon_name->fields['coupon_description']) ? $coupon_name->fields['coupon_description'] . "\n\n" : '');[/B]

 
Thank you very much for your reply. I'm sure this will work, however when I wanted to test this (send coupon from Admin) when I click
Coupon Administration link I get a blank page (new problem, I was there earlier today and it worked fine...)
 
The page it is trying to open is:
<http://www.time-co.com/zencart/admin/coupon_admin.php?zenAdminID=9ba37635fa689fc79517a66474c6b930>
 
What did I screwed up?
23 Sep 2007, 6:47 AM
#6
all4coffee avatar

all4coffee

Zen Follower

Join Date:
Jul 2007
Posts:
154
Plugin Contributions:
0

Re: Manually Email Discount Coupons to Customers

all4coffee:

Thank you very much for your reply. I'm sure this will work, however when I wanted to test this (send coupon from Admin) when I click
Coupon Administration link I get a blank page (new problem, I was there earlier today and it worked fine...)

The page it is trying to open is:
http://www.time-co.com/zencart/admin/coupon_admin.php?zenAdminID=9ba37635fa689fc79517a66474c6b930

What did I screwed up?

Never mind. I figured it out. The code worked - thank you again for your help.

How do I find someone reliable to hire to help me with the stuff I cannot handle myself?

13 Nov 2007, 8:31 AM
#7
shari avatar

shari

New Zenner

Join Date:
May 2007
Posts:
13
Plugin Contributions:
0

Re: Manually Email Discount Coupons to Customers

Are you still looking for someone?