Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2018
    Location
    New York, NY
    Posts
    1
    Plugin Contributions
    0

    Default Reset coupon use count for a specific coupon for a specific customer

    I'm running ZC 1.5.5b, kindly do not tell me to upgrade, I know we need to but there are barriers.

    I've read through the first five pages of this section of the forum, and performed searches on the FAQs.

    How do you reset the coupon use count for a specific coupon for a specific customer? There obviously is a value in the DB somewhere that tracks how many times a customer has used a specific coupon. I need to reset that to zero for a customer, so that they can get a group discount they are entitled to.

  2. #2
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,542
    Plugin Contributions
    19

    Default Re: Reset coupon use count for a specific coupon for a specific customer

    First, know your coupon ID. You can navigate to your Coupon Admin, click the coupon and then look at the URL - it will have a cid parameter, something like cid=16. In this example, your coupon ID would be 16.
    Next, know your customer ID. It's the first column in your customers listing. Let's say for our example customer ID would be 3568.

    Go to Tools->Install SQL Patches and run the following query (BACKUP your database before running any SQL queries):
    Code:
    DELETE FROM coupon_redeem_track WHERE coupon_id = '16' AND customer_id = '3568';
    This should allow that single customer to use that coupon again.

  3. #3
    Join Date
    Jul 2012
    Posts
    16,733
    Plugin Contributions
    17

    Default Re: Reset coupon use count for a specific coupon for a specific customer

    Quote Originally Posted by balihr View Post
    First, know your coupon ID. You can navigate to your Coupon Admin, click the coupon and then look at the URL - it will have a cid parameter, something like cid=16. In this example, your coupon ID would be 16.
    Next, know your customer ID. It's the first column in your customers listing. Let's say for our example customer ID would be 3568.

    Go to Tools->Install SQL Patches and run the following query (BACKUP your database before running any SQL queries):
    Code:
    DELETE FROM coupon_redeem_track WHERE coupon_id = '16' AND customer_id = '3568';
    This should allow that single customer to use that coupon again.
    Note that this is as if the customer had never used that coupon in the past. If the coupon had say a use count per user of 5, then it will be as if they have used it 0 times and can then use it 5 times.

    It does appear that if you wish to reduce the number of uses say by one, that will want to modify the above to account for a "date" or other field in the associated table and limit to 1 or whatever number of permissions back you wish to offer (e.g. Limit 2, limit 3, etc)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. Coupon valid for a specific day of the week
    By DamienDLSkinSolution in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 4
    Last Post: 26 Nov 2010, 11:22 PM
  2. Coupon for specific payment method
    By JamesBond007 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 6
    Last Post: 6 Jan 2009, 02:19 AM
  3. Need to set up coupon for a specific product
    By tracib in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 5 Jun 2008, 06:22 PM
  4. Coupon for one specific product
    By NealJacobPhoto in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 5
    Last Post: 28 Feb 2008, 05:34 AM
  5. coupon for specific item only?
    By w2e in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 4
    Last Post: 9 Nov 2007, 07:41 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