Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2008
    Posts
    12
    Plugin Contributions
    0

    help question Excluding a Category from Group Pricing?

    Hi,

    I want to use group pricing, however, there is one category I would like to exclude from this. I noticed that gift certificates are automatically unaffected by the group pricing and so I presume there must be a way to set this for another category but I can't find it.

    Can anyone help?

    Thanks.

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

    Default Re: Excluding a Category from Group Pricing

    This is not built into Zen Cart to exclude anything from the Group Discounts, other than the Gift Certificates ...

    You could customize the code for this by doing the calculation for all products in that Category and deducting it in the same manner that the Gift Certificates are deducted from the Order Totals module for the Group Discounts ot_group_pricing.php ...
    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
    Mar 2007
    Posts
    21
    Plugin Contributions
    0

    Default Re: Excluding a Category from Group Pricing

    The following appears to be working for me in version 1.3.0.1 -- I just wrote this code today:

    Edit /includes/modules/order_total/ot_group_pricing.php

    In the function

    PHP Code:
        function get_order_total() { 
    Above the line

    PHP Code:
          return $order_total
    I put

    PHP Code:
          $excluded_category_qty $_SESSION['cart']->in_cart_check('master_categories_id','2');
          if ((
    $_SESSION['cart']->in_cart_check('master_categories_id','2') > 0)) $order_total $order_total $excluded_category_qty
    Where '2' is the master category I wanted to exclude from group pricing.

    I hope that helps!

  4. #4
    Join Date
    Dec 2008
    Location
    San Fran
    Posts
    382
    Plugin Contributions
    0

    Default Re: Excluding a Category from Group Pricing

    Quote Originally Posted by kgeoffrey View Post
    The following appears to be working for me in version 1.3.0.1 -- I just wrote this code today:

    Edit /includes/modules/order_total/ot_group_pricing.php

    In the function

    PHP Code:
        function get_order_total() { 
    Above the line

    PHP Code:
          return $order_total
    I put

    PHP Code:
          $excluded_category_qty $_SESSION['cart']->in_cart_check('master_categories_id','2');
          if ((
    $_SESSION['cart']->in_cart_check('master_categories_id','2') > 0)) $order_total $order_total $excluded_category_qty
    Where '2' is the master category I wanted to exclude from group pricing.

    I hope that helps!
    I tried this but get the following error:

    Fatal error: Unsupported operand types in /home/dev/public_html/includes/modules/order_total/ot_group_pricing.php on line 68

    Any idea why?

  5. #5
    Join Date
    Jun 2009
    Posts
    66
    Plugin Contributions
    0

    Default Re: Excluding a Category from Group Pricing?

    i have the same problem. does anyone have the solution?

 

 

Similar Threads

  1. v150 Can I exempt one category from group pricing?
    By terry thompson in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 22 Jul 2012, 06:32 PM
  2. online group pricing vs group pricing per item working with sale maker
    By giftsandwhatnot in forum Addon Payment Modules
    Replies: 1
    Last Post: 24 Oct 2011, 09:22 AM
  3. Excluding category from search
    By kgeoffrey in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Jan 2009, 12:46 AM
  4. Excluding 1 Category from New Products
    By libracorn in forum Setting Up Categories, Products, Attributes
    Replies: 19
    Last Post: 1 Oct 2006, 10:43 PM

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