Results 1 to 10 of 10
  1. #1
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Exclude a Specific Category from a Particular Discount Coupon Code?

    Does anyone know of an easy way to exclude category 350 from a discount coupon code? Basically, we want to offer a 10% discount on everything on our website, so long as the master category is not 350.

    I read somewhere in another thread about a exclude_product() function but it was only mentioned vaguely, in passing? Could really use this right now.... Thank you in advance for any help you can offer me.

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

    Default Re: Exclude a Specific Category from a Particular Discount Coupon Code?

    If you make the Discount Coupon and just add on the Restrictions your Category for categories_id 350 and set to DENY ... doesn't this give the 10% on everything except the Products with a master_categories_id of 350?

    What version Zen Cart are you running on the store where you are trying to do this?
    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
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Exclude a Specific Category from a Particular Discount Coupon Code?

    Quote Originally Posted by Ajeh View Post
    If you make the Discount Coupon and just add on the Restrictions your Category for categories_id 350 and set to DENY ... doesn't this give the 10% on everything except the Products with a master_categories_id of 350?

    What version Zen Cart are you running on the store where you are trying to do this?
    v.1.3.8c and it doesn't seem to have restrictions built in?

  4. #4
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Exclude a Specific Category from a Particular Discount Coupon Code?

    Hi Ajeh,

    Sorry, I've noticed the restricions now... they're applied "after" the coupon setup... I'm new to coupons so just getting to grips with this area on the site... it's pretty self-explanatory....DUHH!!

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

    Default Re: Exclude a Specific Category from a Particular Discount Coupon Code?

    After you make the Discount Coupon ... you should see in the right panel the button for RESTRICTIONS ...

    Click that, and you should see the Category area where you can set the DENY for your Category for 350 ...
    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!

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

    Default Re: Exclude a Specific Category from a Particular Discount Coupon Code?

    I rather thought that might be the problem ...

    NOTE: v1.3.8 is ancient, buggy and has a lot of security issues ... some of the issues do relate to how the categories_id is selected and while there may be a bug fix on the Known Bug Fixes for v1.3.8, you really should be looking to upgrade to v1.3.9h or v1.5 or v1.5.1 ...
    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!

  7. #7
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Exclude a Specific Category from a Particular Discount Coupon Code?

    Here's where I'm going to complicate things though,.... is there a way to exclude the discount code when one specific "payment method" is selected at the checkout confirmation page?

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

    Default Re: Exclude a Specific Category from a Particular Discount Coupon Code?

    This can be done ...

    For example, let's say I do not want a particular Discount Coupon to be used when PayPal Express is selected ...

    Editing the file:
    /includes/modules/order_total/ot_coupon.php

    I can add the code in RED:
    Code:
    // bof: stop Discount Coupon coupon_id 6 from use when paypal is selected
    if ($_SESSION['payment'] == 'paypalwpp' and $coupon_result->fields['coupon_id'] == 6) {
      $foundvalid = false;
    }
    // eof: stop coupon from use when paypal is selected
    
              // remove if fails address validation
              if (!$foundvalid) {
    where the coupon_id would match the cID you see when editing the Discount Coupon in the URL of you 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.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!

  9. #9
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Exclude a Specific Category from a Particular Discount Coupon Code?

    This is perfect, Linda, pure and utter genius!

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

    Default Re: Exclude a Specific Category from a Particular Discount Coupon Code?

    Glad that this worked for you ... thanks for the update ...
    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!

 

 

Similar Threads

  1. v154 How to create a coupon/discount code for a specific group of email address
    By kman55 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 24 May 2015, 06:11 PM
  2. v139h Exclude category or product from group discount
    By abcisme in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 10 Aug 2012, 02:51 PM
  3. Discount Coupon/Code for One Specific Product
    By thegoodlifestore in forum Setting Up Specials and SaleMaker
    Replies: 3
    Last Post: 26 Oct 2009, 01:00 PM
  4. Pass variable from link to Discount Coupon Code
    By MrForce in forum General Questions
    Replies: 0
    Last Post: 17 Apr 2008, 06:07 AM
  5. How can I exclude a particular catagory (i.e. gift certificates) from showing in the
    By studeo in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Jan 2007, 06:20 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