Forums / Built-in Shipping and Payment Modules / Free Shipping w/ Options ONLY on Free Ship Items?

Free Shipping w/ Options ONLY on Free Ship Items?

Locked

Views: 11,178

Results 1 to 20 of 29
This thread is locked. New replies are disabled.
26 Nov 2007, 9:37 PM
#1
lincomatic avatar

lincomatic

New Zenner

Join Date:
Sep 2006
Posts:
7
Plugin Contributions:
0

Free Shipping w/ Options ONLY on Free Ship Items?

Sorry if this has been answered before, but I've been searching the forums over two hours, and can't figure out how to do this:

I have certain items for which I want to offer free ground shipping. However, the customers may want to expedite the order, so I want to also give them the option to select other shipping methods, even when the item is tagged as free shipping.

Right now, whenever I am able to get free shipping to show with other shipping methods together, it always applies to ALL items. I want to show the free shipping + non-free options together ONLY for items marked free shipping. For items not marked free shipping, I want to show only non-free methods.

Thanks for your help.
-Sam

27 Nov 2007, 2:08 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

How are you flagging the Products for the Free Shipping?

What other shipping method(s) are you using?

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!

27 Nov 2007, 2:44 AM
#3
lincomatic avatar

lincomatic

New Zenner

Join Date:
Sep 2006
Posts:
7
Plugin Contributions:
0

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

Ajeh:

How are you flagging the Products for the Free Shipping?

What other shipping method(s) are you using?

I have "Yes, Always Free Shipping " checked in the product description.

The only other shipping method is UPS.

27 Nov 2007, 2:53 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

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:

Order Free Shipping 0 Weight Status
If there is no weight to the order, does the order have Free Shipping?
0= no
1= yes

Note: When using Free Shipping, Enable the Free Shipping Module this will only show when shipping is free.

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?

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!

27 Nov 2007, 6:26 AM
#5
lincomatic avatar

lincomatic

New Zenner

Join Date:
Sep 2006
Posts:
7
Plugin Contributions:
0

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

Oba-san,

Thanks so much for your reply. The solution you proposed above will not work the way I would like. The problem I am trying to address is that we use UPS ground for free shipping, but some customers will want to expedite the order, and select faster shipping... in this case, we want to just charge the normal shipping fees.

Perhaps some examples would help:

  1. Customer orders only 3.5lb item that has free shipping.

I would like to show Free Shipping + all the relevant UPS shipping options calculated based on the real weight of 3.5lbs.
Right now, it only shows Free Shipping, and doesn't offer UPS.

  1. Customer orders a 3.5lb free shipping item + another item that weighs 4lbs and does not have free shipping.

In this case, the customer should not see the option for free shipping, since his order contains an item that is not free shipping. He should see only UPS shipping options, but calculated based on 7.5lbs.

Why do I want to base it on the total weight instead of just 4lbs? Because if he selects UPS Overnight, then the free shipping will not apply.

Optimally, it would calculate based on only 4lbs if the user selects UPS Ground, since that's the shipping method we use for free shipping, but I realize that this scenario would be messy to implement.

28 Nov 2007, 6:37 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

I have a feeling you are going to need some customization to the shipping module(s) to manage this for you ...

Zen Cart is written in php and very flexible ... you just have to get the code written correctly to meet the quirks of your site for features not already built into Zen Cart ... :smile:

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 Jun 2008, 9:36 PM
#7
rt11234 avatar

rt11234

New Zenner

Join Date:
May 2008
Posts:
10
Plugin Contributions:
0

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

Hi lincomatic,

I know exactly what yuour looking for. A simple Free UPS ground shipping offer. This is an easy function to implement with "paid" carts, but with zen cart its a little different.

Besides customization to your shipping module, the only way arround it is to create a coupon code for the amount the "free Ground shipping" would be.

This way customers will get Free Ground shipping and discounted expedited options with orders over a certain amount. (if they enter the coupon code during checkout)

Hope this helps.

8 Jun 2008, 4:45 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

You could also use the built in Free Shipping Options freeoptions to have Free Shipping at the same time as other shipping methods ... :smile:

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!

15 Jun 2008, 7:12 AM
#9
lincomatic avatar

lincomatic

New Zenner

Join Date:
Sep 2006
Posts:
7
Plugin Contributions:
0

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

Ajeh:

You could also use the built in Free Shipping Options freeoptions to have Free Shipping at the same time as other shipping methods ... :smile:

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

25 Jun 2008, 10:13 AM
#10
milkyway avatar

milkyway

Inactive

Join Date:
Aug 2006
Location:
Singapore
Posts:
167
Plugin Contributions:
1

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

We also need solution how to show other shipping options while the product being marked as 'Always free Shipping'

If someone can guide me where to start modifying the code would be so great, I know a little bit of PHP, but I just couldn't find where to start.

By the way 'freeshipping options' doesn't works for us because only certain products needed free shipping (regardless weight and value).

Thanks!

Responsive ZenCart Templates that automatically adapt itself with iPad, iPhone, BlackBerry, Androids and any monitor screen size
Buy a coffee for Zen-Cart devs. http://www.zen-cart.com/donate

26 Jun 2008, 2:45 AM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

lincomatic:

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!]
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 Dec 2008, 6:52 AM
#12
cherven avatar

cherven

New Zenner

Join Date:
Dec 2008
Location:
Saratoga Springs, NY
Posts:
25
Plugin Contributions:
0

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?

9 Dec 2008, 7:16 PM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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!]
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 Dec 2008, 1:18 AM
#14
cherven avatar

cherven

New Zenner

Join Date:
Dec 2008
Location:
Saratoga Springs, NY
Posts:
25
Plugin Contributions:
0

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

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

10 Dec 2008, 6:56 AM
#15
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

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

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!]
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!

13 Aug 2009, 11:01 AM
#16
pcspot avatar

pcspot

New Zenner

Join Date:
Aug 2007
Posts:
31
Plugin Contributions:
0

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

https://www.dealspot.co.za

26 Aug 2009, 9:31 PM
#17
ctopher avatar

ctopher

New Zenner

Join Date:
Nov 2006
Posts:
24
Plugin Contributions:
0

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

Ajeh:

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

Oh please, they just asked where to start.

How about this:

edit includes/functions/functions_general.php and modify:

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.

////
// enable shipping
  function zen_get_shipping_enabled($shipping_module) {
    global $PHP_SELF, $cart, $order;

    // for admin always true if installed
    if (strstr($PHP_SELF, FILENAME_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_SELF, FILENAME_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 == 0 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 == 0 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

if ($product->fields['product_is_always_free_shipping'] != 1 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!

15 Dec 2009, 7:20 PM
#18
jcit avatar

jcit

New Zenner

Join Date:
Nov 2009
Posts:
6
Plugin Contributions:
0

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

Ajeh:

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?

16 Dec 2009, 12:30 AM
#19
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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!]
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!

16 Dec 2009, 1:01 AM
#20
jcit avatar

jcit

New Zenner

Join Date:
Nov 2009
Posts:
6
Plugin Contributions:
0

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).