Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2004
    Posts
    126
    Plugin Contributions
    0

    Default Free shipping item triggers all else in cart to be free shipping

    I have a cart with flat rate shipping, but some things we have marked "free shipping" in the product description, which works fine. BUT if customer order things that are NOT free shipping, then they have to pay shipping. We want any free shipping item in the cart to trigger ALL in the cart to now be free shipping.

    Is there a way to accomplish this? Or a mod? I've been searching the forum forever and keep finding things that sound close but then aren't this so I apologize if I missed it!

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

    Default Re: Free shipping item triggers all else in cart to be free shipping

    Do you just have the Flat Rate flat and FREE SHIPPING! freeshipper installed?
    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
    Aug 2004
    Posts
    126
    Plugin Contributions
    0

    Default Re: Free shipping item triggers all else in cart to be free shipping

    They're the only ones I have on, yes.

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

    Default Re: Free shipping item triggers all else in cart to be free shipping

    To do this, customize the shipping module:
    /includes/modules/shipping/flat.php

    with the code in RED:
    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: give Free Shipping if 1 or more Always Free Shipping is in cart
    if (!IS_ADMIN_FLAG) {
      $chk_cart = $_SESSION['cart']->in_cart_check('product_is_always_free_shipping','1');
      if ($chk_cart > 0) {
        $this->enabled = false;
      }
    }
    // eof: give Free Shipping if 1 or more Always Free Shipping is in cart
    
          if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_FLAT_ZONE > 0) ) {
    and the module:
    /includes/modules/shipping/freeshipper.php

    Code:
          if (zen_get_shipping_enabled($this->code)) {
            $this->enabled = ((MODULE_SHIPPING_FREESHIPPER_STATUS == 'True') ? true : false);
          }
    // bof: give Free Shipping if 1 or more Always Free Shipping is in cart
    if (!IS_ADMIN_FLAG) {
      $chk_cart = $_SESSION['cart']->in_cart_check('product_is_always_free_shipping','1');
      if ($chk_cart > 0) {
        $this->enabled = true;
      }
    }
    // eof: give Free Shipping if 1 or more Always Free Shipping is in cart
    
          if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_FREESHIPPER_ZONE > 0) ) {
    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
    Aug 2004
    Posts
    126
    Plugin Contributions
    0

    Default Re: Free shipping item triggers all else in cart to be free shipping

    Awesome - thank you!!

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

    Default Re: Free shipping item triggers all else in cart to be free shipping

    You are most welcome ... thanks for the update that this worked for you
    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. v154 Free Shipping coupon for 1 item makes all shipping free
    By Phil S in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 15
    Last Post: 7 Jun 2016, 11:29 PM
  2. Replies: 2
    Last Post: 12 Mar 2011, 02:40 PM
  3. Replies: 5
    Last Post: 10 Sep 2010, 01:50 AM
  4. "Always free shipping " option is change all item free shipping?
    By als88 in forum Built-in Shipping and Payment Modules
    Replies: 12
    Last Post: 23 Oct 2009, 04:32 AM
  5. Free shipping item weight calculated wrongly for non valid free shipping zone
    By firehorse in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 28 Oct 2006, 05:39 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