Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Flatrate only for group pricing

    I have this code

    $chk_group = $db->Execute("select customers_group_pricing from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$_SESSION['customer_id'] . "'");
    if ($chk_group->fields['customers_group_pricing'] != 1 || $chk_group->fields['customers_group_pricing'] != 2) {
    $this->enabled = false;
    }

    But it doesn't work, I want the flatrate shipping to only be visible by people who are in group price groups 1 and 2.

    If i can make it work, then also groups 3 and 4.

    So basically, I want the flat rate shipping option to only be available to those who have group pricing.

  2. #2
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: Flatrate only for group pricing

    Would it be easier to say disable if customer is not in a group pricing group

  3. #3
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: Flatrate only for group pricing

    Solved it

    // bof: Only for Discount Groups
    if (!IS_ADMIN_FLAG) {
    $chk_discount_group_sql = "SELECT customers_group_pricing FROM " . TABLE_CUSTOMERS . " WHERE customers_id = '" . $_SESSION['customer_id'] . "'";
    $chk_discount_group = $db->Execute($chk_discount_group_sql);
    if ($chk_discount_group->fields['customers_group_pricing'] == 0) {
    $this->enabled = false;
    }
    }
    // eof: Only for Discount Groups

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

    Default Re: Flatrate only for group pricing

    Thanks for the update that you have this working now and for posting your solution to the problem ...
    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. v150 Help with Minimum Order for Group Pricing Customers Only
    By philip937 in forum General Questions
    Replies: 5
    Last Post: 14 Oct 2013, 03:55 AM
  2. v151 Show payment for only specific group pricing customers
    By dionidis in forum Addon Payment Modules
    Replies: 1
    Last Post: 12 Dec 2012, 02:55 PM
  3. 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
  4. shiping method only for member of Group Pricing
    By Zebra- in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 27 May 2010, 05:49 PM
  5. Free Standard Shipping only for Customers who DO NOT receive Group Discount Pricing?
    By lauriek in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 5
    Last Post: 28 Aug 2009, 02:19 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