Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Group Pricing and Free Shipping

    Is it possible to have those who are in group pricing receive free shipping if they spend over a certain amount? but only if they are in a certain zone!

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

    Default Re: Group Pricing and Free Shipping

    Are you using any of the Free Shipping modules now, such as the Free Shipping Option freeoptions ...
    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 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: Group Pricing and Free Shipping

    it is in the modules but not installed it yet.

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

    Default Re: Group Pricing and Free Shipping

    What you could do is build a Zone Definition for the Free Shipping Options ...

    Then, set the Total to >= XX.XX for the amount that must be used ...

    Then, customize the shipping module to check the customer's group and see if they are allowed the shipping choice ...

    Now, you should also consider that if the customer is not logged in the module will not show until they login and if they are in the customer group and if the amount is >= Total ...
    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!

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

    Default Re: Group Pricing and Free Shipping

    Then, customize the shipping module to check the customer's group and see if they are allowed the shipping choice ...

    any clues....

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

    Default Re: Group Pricing and Free Shipping

    Let's say you want to limit the Free Shipping Options freeoptions to customers in group 1 ...

    You can change the code to:
    Code:
          // disable only when entire cart is free shipping
          if (zen_get_shipping_enabled($this->code)) {
              $this->enabled = ((MODULE_SHIPPING_FREEOPTIONS_STATUS == 'True') ? true : false);
          }
    
    // bof: limit to 1 customers_group_pricing
          $group_query = $db->Execute("select customers_group_pricing from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$_SESSION['customer_id'] . "'");
    
          if (!IS_ADMIN_FLAG && $group_query->fields['customers_group_pricing'] != '1') {
            // do not show
            $this->enabled = false;
          }
    // eof: limit to 1 customers_group_pricing
    
    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!

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

    Default Re: Group Pricing and Free Shipping

    got it to work with group pricing, however, i can't get it to work by weight, am i doing something wrong,

    I want shipping to be free if order is over £50 but less than 2Kg in weight

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

    Default Re: Group Pricing and Free Shipping

    Weight is not truely pounds or Kg ...

    Is your whole site in Kg?

    You should use:
    Total >= 50.00
    Weight <= 2.00

    To make these settings run together, you need to customize one more section of the code ...

    Currently, the module is written for Total OR Weight OR Count ...

    Code:
    // final check for display of Free Options
          if ($this->ck_freeoptions_total or $this->ck_freeoptions_weight or $this->ck_freeoptions_items) {
    try changing to be:
    Code:
    // final check for display of Free Options
          if ($this->ck_freeoptions_total and $this->ck_freeoptions_weight and $this->ck_freeoptions_items) {
    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!

  9. #9
    Join Date
    Jun 2005
    Location
    Austin, Texas, US
    Posts
    216
    Plugin Contributions
    0

    Default Re: Group Pricing and Free Shipping

    Hi there - I appreciate your suggestions here; I think it is close to what I wish to do. Basically one of my merchants wants to reverse this scenario and only offer free shipping options to regular shoppers and NOT anyone in the special customer group. (The customer group represents wholesale buyers.)

    Is it possible that I could reverse the "false" setting to be "true" in your code suggestion?

    Quote Originally Posted by Ajeh View Post
    Let's say you want to limit the Free Shipping Options freeoptions to customers in group 1 ...

    You can change the code to:
    Code:
          // disable only when entire cart is free shipping
          if (zen_get_shipping_enabled($this->code)) {
              $this->enabled = ((MODULE_SHIPPING_FREEOPTIONS_STATUS == 'True') ? true : false);
          }
    
    // bof: limit to 1 customers_group_pricing
          $group_query = $db->Execute("select customers_group_pricing from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$_SESSION['customer_id'] . "'");
    
          if (!IS_ADMIN_FLAG && $group_query->fields['customers_group_pricing'] != '1') {
            // do not show
            $this->enabled = false;
          }
    // eof: limit to 1 customers_group_pricing
    

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

    Default Re: Group Pricing and Free Shipping

    Reverse the logic so anyone in Group 1 cannot see the Free Options:
    Code:
          if (!IS_ADMIN_FLAG && $group_query->fields['customers_group_pricing'] == '1') {
    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!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Need free shipping for customers with group pricing
    By safetysupplies in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 23 Mar 2010, 02:40 PM
  2. 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
  3. Free Shipping - Not for Group Pricing
    By pensive612 in forum Customization from the Admin
    Replies: 0
    Last Post: 24 Apr 2008, 10:37 PM
  4. Group Pricing + Free Shipping
    By SummerG in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 8 Sep 2007, 10:03 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