Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2007
    Location
    Hull, UK
    Posts
    28
    Plugin Contributions
    0

    help question Free Delivery but No Discount % to Groups

    Hi all,
    I've seen a couple of similar posts, but nothing solved, or quite right. I've spent all night on it, but my lack of expertise is preventing me from achieving it.

    I have set up a group called free delivery (ID 5). The discount rate is 0%.

    I have Free Shipping Options set up, to give free delivery when spend is >= £250.

    Regardless of spend, I want to give customers in the applicable group free delivery.

    I really don't want to use coupons.

    I'm confident it's a fairly simple tweak to ../includes/modules/shipping/freeoptions.php but would really appreciate some help.

    Thanks in advance

    Martin

  2. #2
    Join Date
    Dec 2011
    Location
    Wisconsin, USA
    Posts
    674
    Plugin Contributions
    21

    Default Re: Free Delivery but No Discount % to Groups

    What I would do is create another shipping method that would cover this group, then have that method only appear when the customer was a member of that group. Would require some custom programming but not too much

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

    Default Re: Free Delivery but No Discount % to Groups

    Let's say your special Group is customers_group_pricing is 2 ...

    You can customize the shipping module:
    /includes/modules/shipping/freeshippingoptions.php

    with the code in RED:
    Code:
    // bof: give free shipping if Customer is in customers_group_pricing 2
    global $db;
    $chk_group_sql = "SELECT customers_group_pricing from " . TABLE_CUSTOMERS . " WHERE customers_id = " . (int)$_SESSION['customer_id'];
    $chk_group = $db->Execute($chk_group_sql);
    // final check for display of Free Options
          if ($chk_group->fields['customers_group_pricing'] == 2 || ($this->ck_freeoptions_total or $this->ck_freeoptions_weight or $this->ck_freeoptions_items)) {
            $this->enabled = true;
          } else {
            $this->enabled = false;
          }
    // eof: give free shipping if Customer is in customers_group_pricing 2
    
          if ($this->enabled) {
    Now anyone with Orders of >= $250.00 get Free Shipping and anyone in Group 2 always gets a Free Shipping Option ...
    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
    Jul 2007
    Location
    Hull, UK
    Posts
    28
    Plugin Contributions
    0

    Default Re: Free Delivery but No Discount % to Groups

    I'm very grateful.

    Thank you

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

    Default Re: Free Delivery but No Discount % to Groups

    Thanks for the update that this was able to work for you ...

    Remember the Zen Cart Team when you are rich and famous!
    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. Discount groups and volume discount?
    By Mammoth in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 29 Jun 2010, 11:21 PM
  2. Free Delivery Coupon still adding VAT/TAX for delivery
    By PudzPud in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 12 Oct 2009, 08:57 AM
  3. Discount Codes & Free Delivery - Help Needed
    By DPM in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 30 Oct 2008, 09:52 PM
  4. Discount groups plus additional discount
    By 0be1 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 6 Dec 2007, 11:22 AM
  5. Free shipping but not free Cash On Delivery fee
    By Typhoon in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 26 Mar 2007, 07:37 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