Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2007
    Posts
    154
    Plugin Contributions
    0

    Default 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?

  2. #2
    Join Date
    Jul 2007
    Posts
    154
    Plugin Contributions
    0

    Default Re: Manually Email Discount Coupons to Customers

    Quote Originally Posted by all4coffee View Post
    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?

  3. #3
    Join Date
    Jul 2007
    Posts
    154
    Plugin Contributions
    0

    Default Re: Plain text confirmation emails skip coupon description

    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

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Manually Email Discount Coupons to Customers

    /admin/coupon_admin.php

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

    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.

  5. #5
    Join Date
    Jul 2007
    Posts
    154
    Plugin Contributions
    0

    Default Re: Manually Email Discount Coupons to Customers

    Quote Originally Posted by DrByte View Post
    /admin/coupon_admin.php

    find this line:
    Code:
          $message .= TEXT_REMEMBER . "\n\n";
    add a new line below it, like this:
    Code:
          $message .= TEXT_REMEMBER . "\n\n";
         $message .=(!empty($coupon_name->fields['coupon_description']) ? $coupon_name->fields['coupon_description'] . "\n\n" : '');
    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...17a66474c6b930

    What did I screwed up?

  6. #6
    Join Date
    Jul 2007
    Posts
    154
    Plugin Contributions
    0

    Default Re: Manually Email Discount Coupons to Customers

    Quote Originally Posted by all4coffee View Post
    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...17a66474c6b930

    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?

  7. #7
    Join Date
    May 2007
    Posts
    13
    Plugin Contributions
    0

    Default Re: Manually Email Discount Coupons to Customers

    Are you still looking for someone?

 

 

Similar Threads

  1. v139h Exclude a product from discount coupons or quantity discount
    By reiddg in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 7 Aug 2014, 08:21 AM
  2. v151 Twitch TURN OFF SaleMaker & Specials & Discount Coupons for Wholesale Customers
    By twitchtoo in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 26 Dec 2013, 08:52 AM
  3. Blocking usage of Group Discount & Discount Coupons
    By familynow in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 24
    Last Post: 21 Feb 2012, 03:34 AM
  4. Can I restrict Discount Coupons if Group Discount used?
    By mitch_h in forum General Questions
    Replies: 3
    Last Post: 5 Nov 2009, 02:25 AM
  5. Changing Discount coupons email logo
    By devinej1 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Sep 2009, 01:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg