Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Sep 2007
    Posts
    178
    Plugin Contributions
    0

    Default FreeShipping based on Group Pricing per Item

    I'm running 1.3.8a.
    I have installed Group Pricing per Item and have Three groups defined; Wholesale, Distributor and Distributor2.

    I would like to set up shipping for Wholesale customers to be FREE over $150 and for Distributor and Distributor2 to be FREE over $1000.

    If they don't qualify for FREE shipping, then they will pay normal UPS shipping rates based on weight.

    How would I set up the FREE shipping based on the THREE groups I have set?

    Thanks for any help,

    Rick

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

    Default Re: FreeShipping based on Group Pricing per Item

    If you want to offer ONLY Free Shipping based on the Group and amount, then you have more customization work to do than if you wanted to offer a Free shipping Option based on the Group and amount ...

    Which way do you want this to be done?

    1 Add a Free Shipping Option when a Group reaches their Free Shipping Amount ...

    2 Only offer Free Shipping when a Group reaches their Free Shipping Amount ...
    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
    Sep 2007
    Posts
    178
    Plugin Contributions
    0

    Default Re: FreeShipping based on Group Pricing per Item

    Quote Originally Posted by Ajeh View Post
    Which way do you want this to be done?

    1 Add a Free Shipping Option when a Group reaches their Free Shipping Amount ...

    2 Only offer Free Shipping when a Group reaches their Free Shipping Amount ...
    The first options sounds better. This will give them the option of selecting a faster shipping method at a price.

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

    Default Re: FreeShipping based on Group Pricing per Item

    Good ... that will save on a lot of extra custom coding and limit it to the shipping module ...

    What shipping module(s) are you using right now?
    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!

  5. #5
    Join Date
    Sep 2007
    Posts
    178
    Plugin Contributions
    0

    Default Re: FreeShipping based on Group Pricing per Item

    Quote Originally Posted by Ajeh View Post
    What shipping module(s) are you using right now?
    I am currently using:
    FreeOptions
    StorePickUp &
    UPS

    I don't need any different options for StorePickup, which is free for all groups and UPS which is based on weight only. I just need it for the FreeOptions.

    Thanks for your help, Linda!

    Rick

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

    Default Re: FreeShipping based on Group Pricing per Item

    Are you currently using the Free Options freeoptions for anything specific other than trying to build something for Free shipping based on these Groups and Amounts?
    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
    Sep 2007
    Posts
    178
    Plugin Contributions
    0

    Default Re: FreeShipping based on Group Pricing per Item

    Quote Originally Posted by Ajeh View Post
    Are you currently using the Free Options freeoptions for anything specific other than trying to build something for Free shipping based on these Groups and Amounts?
    No, just this.

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

    Default Re: FreeShipping based on Group Pricing per Item

    I would use the Flat Rate shipping module, clone it and customize it to have $.00 for the shipping charge based on Group and order amount ...

    This way you would have a customized shipping module that doesn't get overwritten and shows as an alternative shipping method based on the Group and their Amount ...
    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!

  9. #9
    Join Date
    Sep 2007
    Posts
    178
    Plugin Contributions
    0

    Default Re: FreeShipping based on Group Pricing per Item

    Quote Originally Posted by Ajeh View Post
    I would use the Flat Rate shipping module, clone it and customize it to have $.00 for the shipping charge based on Group and order amount ...
    OK, I found how to clone the Flat Rate shipping module, but how do I customize it to have $zero for the charge based on Group and Order Amount?

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

    Default Re: FreeShipping based on Group Pricing per Item

    Next, you need to get which group the customer belongs to and what the amount is ...

    Then, based on these results you need to enable the module when it should show ...

    Something line this should work:
    Code:
         // disable only when entire cart is free shipping
          if (zen_get_shipping_enabled($this->code)) {
            $this->enabled = ((MODULE_SHIPPING_FLAT_STATUS == 'True') ? true : false);
          }
    
    // bof: test group and order amount
    // do not test if in the admin
    if (!IS_ADMIN_FLAG) {
      global $cart;
      $order_total_amount = $_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices() ;
    
      $group_query = $db->Execute("select customers_group_pricing from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$_SESSION['customer_id'] . "'");
    
      // display current results to screen for testing comment out to not show
      echo 'Customer in group: ' . $group_query->fields['customers_group_pricing'] . ' order amount: ' . $order_total_amount;
    
      // disable for everyone
      $this->enabled = false;
      // distributor customers_group_pricing 1
      if ($group_query->fields['customers_group_pricing'] == 1 && $order_total_amount > 1000) {
        $this->enabled  = true;
      }
      // distributor customers_group_pricing 2
      if ($group_query->fields['customers_group_pricing'] == 2 && $order_total_amount > 1000) {
        $this->enabled  = true;
      }
      // wholesaler customers_group_pricing 3
      if ($group_query->fields['customers_group_pricing'] == 3 && $order_total_amount > 150) {
        $this->enabled  = true;
      }
    }
    // eof: test group and order amount
    
          if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_FLAT_ZONE > 0) ) {
    Last edited by Ajeh; 12 Apr 2010 at 01:55 PM.
    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!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Group Pricing per Item w/ v1.3.9
    By noodle in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 1 Apr 2012, 02:48 PM
  2. 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
  3. How to make an item Free in Group Pricing (Per Item)?
    By lyricwings in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 2
    Last Post: 1 Sep 2008, 09:41 PM
  4. Group Pricing (Per Item)
    By TCarter in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 7
    Last Post: 2 Jul 2007, 02:26 PM

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