Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Jun 2012
    Posts
    9
    Plugin Contributions
    0

    Default Disable Freeshipping for select Group Pricing

    Hi

    Our site currently offer free shipping on order over certain amount. Is there any way to disable the free shipping on customers that are assigned "Discount Pricing Group" - any discount pricing group that is.

    It will be greatly appreciated if this can be solved.

    Thanks!
    Eric

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

    Default Re: Disable Freeshipping for select Group Pricing

    Are you using the Modules ... Order Total ... Shipping ot_shipping for Free Shipping on Orders >= XX?
    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!]
    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
    Jun 2012
    Posts
    9
    Plugin Contributions
    0

    Default Re: Disable Freeshipping for select Group Pricing

    Yes, I set it under the shippingorder total module under admin

  4. #4
    Join Date
    Jun 2012
    Posts
    9
    Plugin Contributions
    0

    Default Re: Disable Freeshipping for select Group Pricing

    yes, exactly

  5. #5
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default Re: Disable Freeshipping for select Group Pricing

    This should do the trick for the Group Pricing switch:

    includes/modules/shipping/freeshipper.php

    PHP Code:
    // bof Twitch Free Shipping Group Pricing Filter - March 17th 2015 - if customer belongs to group pricing do not show this shipping option
    $this->enabled = ((MODULE_SHIPPING_FREESHIPPER_STATUS == 'True') ? true false);
    if(
    $_SESSION['customers_group_pricing'] >= '1' && $this->enabled==true// a group pricing customer
    {
    $this->enabled=false// when true - turn this module off
    }else{
    $this->enabled=true// when false - keep this module on
    }
    // eof Twitch Free Shipping Group Pricing Filter - March 17th 2015 - if customer belongs to group pricing do not show this shipping option 
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base8 - Obsidian - This, is what's new.

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

    Default Re: Disable Freeshipping for select Group Pricing

    If you are controlling this with the Shipping ot_shipping you need to edit two files:
    /includes/modules/pages/checkout_shipping/header/header_php.php

    and add the code in RED:
    Code:
          case 'both':
            $pass = true;
            break;
        }
    
    // bof: no Free Shipping for customers in groups
        global $db;
        $group_query = $db->Execute("select customers_group_pricing from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$_SESSION['customer_id'] . "'");
        if ($group_query->fields['customers_group_pricing'] != '0') {
          $pass = false;
        }
    // eof: no Free Shipping for customers in groups
    
        $free_shipping = false;
        if ( ($pass == true) && ($_SESSION['cart']->show_total() >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {
          $free_shipping = true;
        }
    and the file:
    /includes/modules/order_total/ot_shipping.php
    Code:
              default:
                $pass = false; break;
            }
    
    // bof: no Free Shipping for customers in groups
        global $db;
        $group_query = $db->Execute("select customers_group_pricing from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$_SESSION['customer_id'] . "'");
        if ($group_query->fields['customers_group_pricing'] != '0') {
          $pass = false;
        }
    // eof: no Free Shipping for customers in groups
    
            if ( ($pass == true) && ( ($order->info['total'] - $order->info['shipping_cost']) >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {
              $order->info['shipping_method'] = $this->title;
    What this will do is allow the Shipping ot_shipping to give Free Shipping on orders over XX.XX except to those in a Discount Group ...
    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!]
    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
    Jun 2012
    Posts
    9
    Plugin Contributions
    0

    Default Re: Disable Freeshipping for select Group Pricing

    Quote Originally Posted by Ajeh View Post
    If you are controlling this with the Shipping ot_shipping you need to edit two files:
    /includes/modules/pages/checkout_shipping/header/header_php.php

    and add the code in RED:
    Code:
          case 'both':
            $pass = true;
            break;
        }
    
    // bof: no Free Shipping for customers in groups
        global $db;
        $group_query = $db->Execute("select customers_group_pricing from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$_SESSION['customer_id'] . "'");
        if ($group_query->fields['customers_group_pricing'] != '0') {
          $pass = false;
        }
    // eof: no Free Shipping for customers in groups
    
        $free_shipping = false;
        if ( ($pass == true) && ($_SESSION['cart']->show_total() >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {
          $free_shipping = true;
        }
    and the file:
    /includes/modules/order_total/ot_shipping.php
    Code:
              default:
                $pass = false; break;
            }
    
    // bof: no Free Shipping for customers in groups
        global $db;
        $group_query = $db->Execute("select customers_group_pricing from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$_SESSION['customer_id'] . "'");
        if ($group_query->fields['customers_group_pricing'] != '0') {
          $pass = false;
        }
    // eof: no Free Shipping for customers in groups
    
            if ( ($pass == true) && ( ($order->info['total'] - $order->info['shipping_cost']) >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {
              $order->info['shipping_method'] = $this->title;
    What this will do is allow the Shipping ot_shipping to give Free Shipping on orders over XX.XX except to those in a Discount Group ...


    Thanks!!! It works like a charm!!! Thank you so much.

 

 

Similar Threads

  1. 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
  2. FreeShipping based on Group Pricing per Item
    By RFree190 in forum Built-in Shipping and Payment Modules
    Replies: 19
    Last Post: 13 Apr 2010, 04:07 AM
  3. Disable group pricing on sales or specials?
    By direwolf in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 3
    Last Post: 18 Aug 2008, 08:48 AM
  4. Disable Freeshipping for select Group Pricing
    By techmon in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 13 Nov 2007, 03:37 AM

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