Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 29
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Free Shipping w/ Options ONLY on Free Ship Items?

    Quote Originally Posted by lincomatic View Post
    If that can be done on a per-item basis, then it's ideal.
    So far I haven't been able to figure out how to do it w/o having it apply to everything.

    TIA,
    Sam
    If you want Always Free Shipping items to be Free Shipping -- OR -- UPS when only Always Free Shipping items are in the cart then you will need to do some customization ...

    Currently, you can get Free Shipping and all other shipping modules are turned off when only Always Free Shipping is in the Cart and no extra charge when a mixed cart ...

    You need the weight to make the UPS work correctly, but you need the Always Free Shipping to make the Free Shipping work correctly ... unfortunately, it is coded so that Always Free Shipping is just that ... Always Free Shipping

    So, you would need some customization to not do that ...
    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!

  2. #12
    Join Date
    Dec 2008
    Location
    Saratoga Springs, NY
    Posts
    25
    Plugin Contributions
    1

    Default Re: Free Shipping w/ Options ONLY on Free Ship Items?

    I am also looking for something like this.

    I need to offer free shipping only on certen products, but at the same time, offer paid UPS Shipping so they can choose faster shipping.

    I can possibly code this, if someone can point me to the right file(s) that need to be coded?

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

    Default Re: Free Shipping w/ Options ONLY on Free Ship Items?

    You would have to customize the code to run both UPS and Free Shipping of some sort at the same time ...

    You need weight to offer the UPS shipping but you need a flag of some sort to indicate when to run a Free Shipping option ...

    This can be done, but does require some customization ...
    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. #14
    Join Date
    Dec 2008
    Location
    Saratoga Springs, NY
    Posts
    25
    Plugin Contributions
    1

    Default Re: Free Shipping w/ Options ONLY on Free Ship Items?

    Could you possibly point me to which files need to be customized?

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

    Default Re: Free Shipping w/ Options ONLY on Free Ship Items?

    Not without sitting down and writting all of the code ...

    You need a new field added to the products table ... maybe look for the field products_weight to see where it is used for the catalog and admin ...

    You then need a shipping module to manage the orders that contain only these products that allow Free Shipping with the alternative of faster delivery for normal charges ...

    Cloning the Flat Rate flat and changing the language files and adding a check on the cart to see if it contains only items that are marked as products_free_shipping_option would show ...
    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!

  6. #16
    Join Date
    Aug 2007
    Posts
    31
    Plugin Contributions
    0

    Default Re: Free Shipping w/ Options ONLY on Free Ship Items?

    I have overcome this by doing the following:
    1) set up flat rate (change the language files to reflect "Free Shipping") and assign a charge of $0.01 -
    so now all items show up a "free shipping" shipping cost of $0.01

    2) use table rate and add your standard or other shipping rates

    You can also adjust the product info page to add a free shipping icon so this shows up on all product pages

    hope this helps

    www.dealspot.co.za

  7. #17
    Join Date
    Nov 2006
    Posts
    24
    Plugin Contributions
    0

    Default Re: Free Shipping w/ Options ONLY on Free Ship Items?

    Quote Originally Posted by Ajeh View Post
    Not without sitting down and writting all of the code ... .
    Oh please, they just asked where to start.

    How about this:

    edit includes/functions/functions_general.php and modify:

    PHP Code:
    zen_get_shipping_enabled($shipping_module
    Something like this is probably overkill, but for me it gives the user all of the available shipping options.

    PHP Code:
    ////
    // enable shipping
      
    function zen_get_shipping_enabled($shipping_module) {
        global 
    $PHP_SELF$cart$order;

        
    // for admin always true if installed
        
    if (strstr($PHP_SELFFILENAME_MODULES)) {
          return 
    true;
        }

        
    $check_cart_free $_SESSION['cart']->in_cart_check('product_is_always_free_shipping','1');
        
    $check_cart_cnt $_SESSION['cart']->count_contents();
        
    $check_cart_weight $_SESSION['cart']->show_weight();

        switch(
    true) {
          
    // for admin always true if installed
          
    case (strstr($PHP_SELFFILENAME_MODULES)):
            return 
    true;
            break;
          
    // Free Shipping when 0 weight - enable freeshipper - ORDER_WEIGHT_ZERO_STATUS must be on
          
    case (ORDER_WEIGHT_ZERO_STATUS == '1' and ($check_cart_weight == and $shipping_module == 'freeshipper')):
            return 
    true;
            break;
          
    // Free Shipping when 0 weight - disable everyone - ORDER_WEIGHT_ZERO_STATUS must be on
          
    case (ORDER_WEIGHT_ZERO_STATUS == '1' and ($check_cart_weight == and $shipping_module != 'freeshipper')):
            
    //return false; - No, we want to offer other modules
            
    return true;
            break;
          case ((
    $_SESSION['cart']->free_shipping_items() == $check_cart_cnt) and $shipping_module == 'freeshipper'):
            return 
    true;
            break;
          case ((
    $_SESSION['cart']->free_shipping_items() == $check_cart_cnt) and $shipping_module != 'freeshipper'):
            
    //return false; - No, we want to offer other modules
            
    return true;
            break;
          
    // Always free shipping only true - enable freeshipper
          
    case (($check_cart_free == $check_cart_cnt) and $shipping_module == 'freeshipper'):
            return 
    true;
            break;
          
    // Always free shipping only true - disable everyone
          
    case (($check_cart_free == $check_cart_cnt) and $shipping_module != 'freeshipper'):
            
    //return false; - No, we want to offer other modules
            
    return true;
            break;
          
    // Always free shipping only is false - disable freeshipper
          
    case (($check_cart_free != $check_cart_cnt) and $shipping_module == 'freeshipper'):
            return 
    false;
            break;
          default:
            return 
    true;
            break;
        }
      } 
    This will enable other shipping options with Free Shipping. There is still a problem however because Zen Cart sets the weight of the product to 0 if it's set to "Yes, always free shipping". So we need to stop that from happening.

    edit the calculate method in includes/classes/shopping_cart.php

    wherever you see the code

    PHP Code:
    if ($product->fields['product_is_always_free_shipping'] != and ... 
    and it's part of the $products_weight calculation, comment it out.
    In some cases the if statement is looking for product_is_always_free_shipping to be a 1 to add to the free_shipping_weight. Comment out those too.

    You may have to tweak it a bit for attributes etc, but since you asked to be pointed to the files needed to be customized, there you go!

  8. #18
    Join Date
    Nov 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: Free Shipping w/ Options ONLY on Free Ship Items?

    Hi Linda,
    After searching (and searching, and searching again) this is very close to solving a problem I'm having, but I'm getting free shipping on the entire order instead of just the item. This seems like an easy problem to solve, but I'm missing something.

    Here's the background (zc 1.3.8 btw):

    We have an item (with weight; 6 lbs.) that ships free to California. The "Always Free Shipping:" for the product is set to "Special, Product/Download Combo Requires a Shipping Address."

    I'm using Free Shipping: freeoptions (all settings defaulted; only using the CA zone, which works fine.) If the item is ordered by itself (or multiples) free shipping pops up and we're good. Anything outside of California reverts back to UPS only. (We only ship UPS for everything.) So far, so good.

    If, however, another non-free shipping item is added to the cart, shipping remains free for the entire order instead of calculating just the non-free item(s).

    It seems fairly straightforward, but has been stumping me for a couple days. [insert frustration smiley of your choice here]

    Thanks in advance,
    Jeff



    Quote Originally Posted by Ajeh View Post
    Does this mean ALL products have weight EXCEPT the Product for Always Free Shipping?

    If so, UNMARK Always Free Shipping and set to:
    No, Normal Shipping Rules

    Set the products_weight on this Product to 0 ...

    Set in the Configuration ... Shipping/Packaging ... to 0 for NO:


    Maker sure the Free Shipping Options freeoptions is Installed ...

    Set the weight to <= .1 ...

    What this will do is on Orders with many products plus this one it will not add to the UPS shipping charges ...

    When Ordered alone, the 0 weight Products will allow Free Shipping AND allow for minimal charges on UPS ... minimal charges based on the .1 weight on the Product ...

    Would that work for you?

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

    Default Re: Free Shipping w/ Options ONLY on Free Ship Items?

    You say you have:
    We have an item (with weight; 6 lbs.) that ships free to California. The "Always Free Shipping:" for the product is set to "Special, Product/Download Combo Requires a Shipping Address."
    Is this Product a Download and a Physical Product so that when ordered the customer gets both a Download and something Physical sent to them?
    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!

  10. #20
    Join Date
    Nov 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: Free Shipping w/ Options ONLY on Free Ship Items?

    No. I only used that option so the weight would remain in the equation (not setting it up as a zero weight or minimal weight item, since other states UPS rates are derived from it).

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Free Shipping Still Shows UPS Ship Options
    By DebiWebi in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 2 Nov 2009, 05:43 PM
  2. Free Shipping only certain items. All other items perunitweight
    By design4dotcom in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 23 Jun 2009, 02:08 AM
  3. Replies: 4
    Last Post: 30 Jan 2009, 04:58 PM
  4. Certain items ship free ONLY in domestic?
    By standpipe in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 4 Sep 2007, 06:04 PM
  5. Free shipping on order less than free ship price
    By wynnesome in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 8 May 2007, 09:53 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