Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2013
    Posts
    3
    Plugin Contributions
    0

    Default How to disable group price if coupon used

    Hello all,

    I'm a newbie, last october 2012 my brother and I we started our adventure with Zen-cart, my eshop in online since last january and everything working fine.
    It's a installation from scratch, no upgrade at all, with a few of customization/plug-in (like template and CEON Back-in-stock notification)

    My problem is this, I have some clients in a group rate with a 5% discount, now I'm giving some coupons 10% discount, I would like that if a customer of a group using coupon, discount price group will be disabled. I don't want double discount.

    Reading other post, I understand that something has to be modified into ot_group_pricing.php, but unfortunately, I have no idea how to.
    Can somebody help me?? Many thanks

  2. #2
    Join Date
    Mar 2013
    Posts
    3
    Plugin Contributions
    0

    Default Re: How to disable group price if coupon used

    no one can give me an help, any idea ?
    many thanks

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

    Default Re: How to disable group price if coupon used

    You can try customizing the file:
    /includes/modules/order_total/ot_group_pricing.php

    and add the code in RED:
    Code:
      function calculate_deductions($order_total) {
        global $db, $order;
    
    // bof: turn off Group Pricing when a Coupon is used
        if ($_SESSION['cc_id'] > 0) {
          return 0;
        }
    // eof: turn off Group Pricing when a Coupon is used
    You may wish to add some text about this on the Discount Coupons to say that Discount Coupons will result in the loss of the Group Discount ...
    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!

  4. #4
    Join Date
    Mar 2013
    Posts
    3
    Plugin Contributions
    0

    Default Re: How to disable group price if coupon used

    Yeeeessss !!!! It works perfectly !!! many and many thanks

    if I make an order is shown subtotal, group discount value and total, if I redeem a coupon is shown subtotal, group discount disappears and coupon discount appears then total.

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

    Default Re: How to disable group price if coupon used

    Thanks for the update that this worked for you ...
    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
    Oct 2014
    Location
    Georgia
    Posts
    74
    Plugin Contributions
    0

    Default Re: How to disable group price if coupon used

    Quote Originally Posted by Ajeh View Post
    You can try customizing the file:
    /includes/modules/order_total/ot_group_pricing.php

    and add the code in RED:
    Code:
      function calculate_deductions($order_total) {
        global $db, $order;
    
    // bof: turn off Group Pricing when a Coupon is used
        if ($_SESSION['cc_id'] > 0) {
          return 0;
        }
    // eof: turn off Group Pricing when a Coupon is used
    You may wish to add some text about this on the Discount Coupons to say that Discount Coupons will result in the loss of the Group Discount ...
    This doesn't seem to work for me, however, I have installed the Online Group Pricing mod. Is there a different file to update?

    Thanks,
    Andrew

 

 

Similar Threads

  1. v151 Can I apply free shipping over a certain price when coupon used
    By oavs in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 20 Feb 2015, 04:17 AM
  2. Special Price overrides Group price and coupon codes
    By Andy6867 in forum Setting Up Specials and SaleMaker
    Replies: 1
    Last Post: 19 May 2014, 02:35 PM
  3. checkout - how to disable discount coupon?
    By tparvaiz in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Jul 2011, 08:19 AM
  4. How to ignore sale price and apply group Discount to original product price?
    By cushietushies in forum Setting Up Specials and SaleMaker
    Replies: 2
    Last Post: 25 Jul 2008, 05:51 AM
  5. How to disable Free Shipping if certain coupon used
    By rcrosier in forum Addon Shipping Modules
    Replies: 1
    Last Post: 21 Feb 2007, 01:58 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