Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2005
    Posts
    140
    Plugin Contributions
    0

    Default Tracking Gift Certificates

    We tend to send out gift certificates to our good customers (for birthdays, etc) and I was wondering if there is a way to track them in the admin. I know there is a way to see if they were redeemed or not, but I would like to know if these people are ordering more than their certificate amount. The "Gift Certificates Sent" report doesn't give that info, and the sales report only gives general info. The only way I can do it is to search the order confirmation emails for "gift certificates" but that is way too time consuming. Is there any report that can do this?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Tracking Gift Certificates

    You could customize the code in the file:
    /your_secret_admin/stats_customers.php

    with the code in RED:
    Code:
      while (!$customers->EOF) {
        $rows++;
    
        $customers_query_gift_raw = "SELECT o.orders_id, ot.value FROM " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot WHERE o.customers_id = '" . $customers->fields['customers_id'] . "' and o.orders_id = ot.orders_id and ot.class='ot_gv'";
        $customers_query_gift = $db->Execute($customers_query_gift_raw);
    
        if (strlen($rows) < 2) {
          $rows = '0' . $rows;
        }
    ?>
                  <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='<?php echo zen_href_link(FILENAME_CUSTOMERS, 'cID=' . $customers->fields['customers_id'], 'NONSSL'); ?>'">
                    <td class="dataTableContent" align="right"><?php echo $customers->fields['customers_id']; ?>&nbsp;&nbsp;</td>
                    <td class="dataTableContent"><?php echo '<a href="' . zen_href_link(FILENAME_CUSTOMERS, 'cID=' . $customers->fields['customers_id'], 'NONSSL') . '">' . $customers->fields['customers_firstname'] . ' ' . $customers->fields['customers_lastname'] . '</a>'; ?></td>
                    <td class="dataTableContent" align="right"><?php echo $currencies->format($customers->fields['ordersum']) . '<br>GV: ' . $currencies->format($customers_query_gift->fields['value']); ?>&nbsp;</td>
                  </tr>
    <?php
        $customers->MoveNext();
      }
    ?>
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Aug 2005
    Posts
    140
    Plugin Contributions
    0

    Default Re: Tracking Gift Certificates

    Thanks so much! I'll give that a try!

 

 

Similar Threads

  1. Can I prevent Gift Certificates from being bought with Gift Certificates?
    By Brianwocky in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 21 Dec 2010, 07:11 PM
  2. Searching a cart for Gift Certificates (GIFT-XXXX)
    By retched in forum Contribution-Writing Guidelines
    Replies: 7
    Last Post: 12 Aug 2010, 02:58 AM
  3. Tracking system for gift certificates in customer account page
    By reza in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 12 Jul 2007, 02:19 PM
  4. Tracking Gift Certificates?
    By Jeff_Mash in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 15 Jun 2007, 04:40 PM
  5. Turn off Gift Wrap for Gift Certificates
    By tammy_kenny in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 25 Jul 2006, 12:54 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR