Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2009
    Posts
    80
    Plugin Contributions
    0

    Default Deleting Old Coupon Codes?

    We have been using coupon codes fine, but now we want to delete or clean up some of our super old ones so we can use them again - the same name for the code. Is this possible?

    Simply deleting them doesn't really remove them.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,718
    Plugin Contributions
    6

    Default Re: Deleting Old Coupon Codes?

    You would need to do this in phpMyAdmin and look at the table:
    coupons

    You will find the Discount Coupons from the:
    coupon_code

    and you will see them marked as:
    coupon_active

    where N is the ones that are marked "deleted" or "expired" ...
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,718
    Plugin Contributions
    6

    Default Re: Deleting Old Coupon Codes?

    NOTE: if you are deleting them in phpMyAdmin then you need to remove them from the:
    coupons_description
    coupon_restrict

    before you do this ...

    If you change the coupon_active to Y you can then change them via the Zen Cart Admin ...
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  4. #4
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,855
    Plugin Contributions
    0

    Default Re: Deleting Old Coupon Codes?

    Ajeh,

    I tried today to delete a coupon on the Admin side and it basically just changed the status to inactive instead of deleting it from the database. Any ideas?

    Thanks!

  5. #5
    Join Date
    Jan 2004
    Posts
    58,262
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Deleting Old Coupon Codes?

    Quote Originally Posted by BlessIsaacola View Post
    Ajeh,

    I tried today to delete a coupon on the Admin side and it basically just changed the status to inactive instead of deleting it from the database. Any ideas?

    Thanks!
    That is by design.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  6. #6
    Join Date
    Feb 2004
    Location
    Georgia, USA
    Posts
    1,855
    Plugin Contributions
    0

    Default Re: Deleting Old Coupon Codes?

    Thanks DrByte! In that case I need to go find a different thread to attach my issue. I was prompted to delete a coupon today when an expired coupon was accepted as valid by Zen Cart. I will go look for the best thread to pick up this issue.

    Thanks!

 

 

Similar Threads

  1. reactivating coupon codes
    By booghaboobaby in forum General Questions
    Replies: 1
    Last Post: 5 Dec 2009, 05:31 AM
  2. Old Coupon Codes Issue/Bug?
    By marcopolo in forum Creating Discounts/Coupons, Gift Certificates, Newsletters
    Replies: 0
    Last Post: 27 Nov 2009, 02:45 AM
  3. Coupon Codes
    By ktessitore in forum Creating Discounts/Coupons, Gift Certificates, Newsletters
    Replies: 5
    Last Post: 27 Apr 2009, 04:11 PM
  4. Coupon Codes
    By kevinmc3 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Mar 2009, 12:00 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
  •