Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Calculated shipping doesn't show up when an item is free shipping.

Calculated shipping doesn't show up when an item is free shipping.

Views: 5,519

Results 1 to 20 of 28
7 Jul 2012, 12:22 AM
#1
vanhorn_s avatar

vanhorn_s

Zen Follower

Join Date:
Apr 2010
Posts:
283
Plugin Contributions:
0

Calculated shipping doesn't show up when an item is free shipping.

I have a new problem, which I discovered today, when a customer from Vancouver called me to inform me that the order they were trying to place an order, and couldn't get the shipping price. I discovered that the few items I had free shipping on, the shipping calculator only shows free shipping, unless I use my own zip code, then it would only show store pickup also. I tried un-checking always free shipping, changing the weight to zero, and activating the free shipping if the weight is zero, and I still have the same problem. If I add an item to the cart that does not have free shipping, with a free shipping item, then the shipping calculator works fine. This is the first time that I have sold free shipping items, and so I don't know if this problem existed when I was running 1.3.8a.

Website: http://www.redsautorehab.com/
version: 1.5.0

7 Jul 2012, 3:25 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Calculated shipping doesn't show up when an item is free shipping.

Install the FREE SHIPPING freeshipper shipping module ... this allows 0 weight Products to be able to checkout when they are the only Product in the cart ...

7 Jul 2012, 4:24 AM
#3
vanhorn_s avatar

vanhorn_s

Zen Follower

Join Date:
Apr 2010
Posts:
283
Plugin Contributions:
0

Re: Calculated shipping doesn't show up when an item is free shipping.

If you are talking about the free shipping module that is pre installed, then yes, I am using it. I even tried removing, and reinstalling, and it made no difference. Here are the settings I have for the freeshipper module:
FREE SHIPPING
Enable Free Shipping =True
Free Shipping Cost=0.00
Handling Fee=0
Tax Class=Taxable Goods
Shipping Zone=USA
Sort Order=0

Here is what I see when I enter the info my my customer in canada:

Shipping quotes are based on the address information you selected:
British Columbia v3w 1a3 Canada
Available Shipping Methods Rates

Here is what I see when I enter my location:
Shipping quotes are based on the address information you selected:
Utah 84747 United States
Available Shipping Methods Rates
FREE SHIPPING! (No Delivery Charge) $0.00
Store Pickup (Walk In) $0.00

As you can see, My customers in the us cannot choose a faster shipping option, and international customers have no option.

7 Jul 2012, 2:05 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Calculated shipping doesn't show up when an item is free shipping.

Always Free Shipping and/or 0 weight on the Product when 0 weight is set to mean Free Shipping only gives the FREE SHIPPING! freeshipper shipping module ...

You have a Zone for the US on that Module so the other countries have no available shipping ...

Are the Free Shipping Products Free Shipping to everyone, or just the US?

If the Free Shipping on the Free Shipping Products are just for the US, then what should happen with those for the Rest of the World?

7 Jul 2012, 2:43 PM
#5
vanhorn_s avatar

vanhorn_s

Zen Follower

Join Date:
Apr 2010
Posts:
283
Plugin Contributions:
0

Re: Calculated shipping doesn't show up when an item is free shipping.

The free shipping items that I am selling only costs me $.90 to ship in the us, which is why it is free. If an international customer wants to purchase one of these items, they can't at this point. I am asking if there is a way of having the items free in the us, and have the calculated shipping, if a us customer wants it faster, or if an international customer wants one of these items.

7 Jul 2012, 3:32 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Calculated shipping doesn't show up when an item is free shipping.

If you mark the Free Shipping Products for the US as Always Free Shipping and add weight to them ... you can make the following customizations to make the Regular Shipping modules show at the same time as the Always Free Shipping module for your Zone Definition that is allowed to have Free Shipping on these products that are marked as Always Free Shipping ... and for those not in the Zone Definition, only the Regular shipping modules will work ...

Let's say you want to offer Always Free Shipping for your Zone Definition that is allowed Free Shipping and show Regular shipping modules at the same time, using USPS as the example ...

Customize the file:
/includes/modules/shipping/usps.php

with the code in RED:

[B]// bof: Always show regular shipping even when Always Free Shipping
[/B]    // disable only when entire cart is free shipping
[B]//[/B]    if (zen_get_shipping_enabled($this->code)) {
      $this->enabled = ((MODULE_SHIPPING_USPS_STATUS == 'True') ? true : false);
[B]//[/B]    }
[B]// eof: Always show regular shipping even when Always Free Shipping[/B]

Customize the file:
/includes/classes/shipping.php

with the code in RED:

  function calculate_boxes_weight_and_tare() {
    global $total_weight, $shipping_weight, $shipping_quoted, $shipping_num_boxes;

[B]// bof: Always show regular shipping even when Always Free Shipping
[/B]    [B]$total_weight += $_SESSION['cart']->free_shipping_weight;[/B]
[B]// eof: Always show regular shipping even when Always Free Shipping[/B]

    if (is_array($this->modules)) {

Then, on the FREE SHIPPING freeshipper shipping module, add the Zone Definition that is allowed to have Free Shipping and show the other shipping modules at the same time ...

7 Jul 2012, 3:47 PM
#7
vanhorn_s avatar

vanhorn_s

Zen Follower

Join Date:
Apr 2010
Posts:
283
Plugin Contributions:
0

Re: Calculated shipping doesn't show up when an item is free shipping.

Thank you, that's exactly what I wanted. If I wanted to have ups quotes show as well, would it be something similar? I tried this, and it doesn't seem to work in the ups.php:

    // disable only when entire cart is free shipping
 //   if (zen_get_shipping_enabled($this->code)) {
 //     $this->enabled = ((MODULE_SHIPPING_UPS_STATUS == 'True') ? true : false);
 //   }

 //   if ($this->enabled) {
7 Jul 2012, 3:59 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Calculated shipping doesn't show up when an item is free shipping.

Glad that this worked for you ...

For any other shipping module that you want to show, add the comment marks ( // ) in a similar manner that were made in the usps.php in the code ... I like to add the comments that the changes were made as well to help identify the changes made for future updates ...

7 Jul 2012, 4:00 PM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Calculated shipping doesn't show up when an item is free shipping.

You have too many lines commented out:

 [B]//[/B]     $this->enabled = ((MODULE_SHIPPING_UPS_STATUS == 'True') ? true : false); 
 [B]//[/B]   if ($this->enabled) {

those comment marks do not belong there ...

7 Jul 2012, 4:12 PM
#10
vanhorn_s avatar

vanhorn_s

Zen Follower

Join Date:
Apr 2010
Posts:
283
Plugin Contributions:
0

Re: Calculated shipping doesn't show up when an item is free shipping.

Sorry, I missed that. It works perfectly now. I would really like to learn php, so that I can try to figure these things out myself.

7 Jul 2012, 4:15 PM
#11
ajeh avatar

ajeh

Oba-san

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

Re: Calculated shipping doesn't show up when an item is free shipping.

Give yourself time ... you will get the hang of it ...

I am still learning it and have been using it for years ... :cool:

25 Jan 2014, 6:47 PM
#12
lolwaut avatar

lolwaut

Zen Follower

Join Date:
Dec 2010
Posts:
142
Plugin Contributions:
0

Re: Calculated shipping doesn't show up when an item is free shipping.

Ajeh:

If you mark the Free Shipping Products for the US as Always Free Shipping and add weight to them ... you can make the following customizations to make the Regular Shipping modules show at the same time as the Always Free Shipping module for your Zone Definition that is allowed to have Free Shipping on these products that are marked as Always Free Shipping ... and for those not in the Zone Definition, only the Regular shipping modules will work ...

Let's say you want to offer Always Free Shipping for your Zone Definition that is allowed Free Shipping and show Regular shipping modules at the same time, using USPS as the example ...

Customize the file:
/includes/modules/shipping/usps.php

with the code in RED:

[B]// bof: Always show regular shipping even when Always Free Shipping
[/B] // disable only when entire cart is free shipping
[B]//[/B] if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_USPS_STATUS == 'True') ? true : false);
[B]//[/B] }
[B]// eof: Always show regular shipping even when Always Free Shipping[/B]

> 
> Customize the file:
> /includes/classes/shipping.php
> 
> with the code in **RED**:
> ```
  function calculate_boxes_weight_and_tare() {
    global $total_weight, $shipping_weight, $shipping_quoted, $shipping_num_boxes;

[B]// bof: Always show regular shipping even when Always Free Shipping
[/B]    [B]$total_weight += $_SESSION['cart']->free_shipping_weight;[/B]
[B]// eof: Always show regular shipping even when Always Free Shipping[/B]

    if (is_array($this->modules)) {

Then, on the FREE SHIPPING freeshipper shipping module, add the Zone Definition that is allowed to have Free Shipping and show the other shipping modules at the same time ...

Linda,

I tried implementing this change but with the zones shipping module instead of USPS. Everything works as it's supposed to when the customer has an address based in zone USA. When ALWAYS FREE SHIPPING products with weights associated with them are the only items in the cart, the Free Shipping Only and my standard Zone Shipping shipping options are both present during checkout. However, when the customer's address is NOT within zone USA and and the cart only has ALWAYS FREE SHIPPING products in it (with weights associated with them), there are NO shipping options presented at checkout. At step 1 of checkout, it says "This is currently the only shipping method available to use on this order.", then there are NO SHIPPING OPTIONS PRESENT with radio buttons. When you try to click the continue checkout button to proceed to step 2, it simply refreshes the step 1 page.

Any ideas?

Thank you!

27 Jan 2014, 10:58 PM
#13
lolwaut avatar

lolwaut

Zen Follower

Join Date:
Dec 2010
Posts:
142
Plugin Contributions:
0

Re: Calculated shipping doesn't show up when an item is free shipping.

Harmless bump.

27 Jan 2014, 11:18 PM
#14
ajeh avatar

ajeh

Oba-san

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

Re: Calculated shipping doesn't show up when an item is free shipping.

Do you have a Zone set on the FREE SHIPPING! freeshipper shipping module?

28 Jan 2014, 1:20 AM
#15
lolwaut avatar

lolwaut

Zen Follower

Join Date:
Dec 2010
Posts:
142
Plugin Contributions:
0

Re: Calculated shipping doesn't show up when an item is free shipping.

Ajeh:

Do you have a Zone set on the FREE SHIPPING! freeshipper shipping module?

Thank you for your reply. Yes, I have a zone set on freeshipper... USA.

28 Jan 2014, 2:23 AM
#16
ajeh avatar

ajeh

Oba-san

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

Re: Calculated shipping doesn't show up when an item is free shipping.

Always Free Shipping is designed to make a Product have Free Shipping using the FREE SHIPPING! freeshipper shipping module ...

That shipping module is not really designed to have Zones in the conventional manner but is there for customization purposes ...

What are you trying to do with the Always Free Shipping setting on your products?

28 Jan 2014, 2:39 AM
#17
lolwaut avatar

lolwaut

Zen Follower

Join Date:
Dec 2010
Posts:
142
Plugin Contributions:
0

Re: Calculated shipping doesn't show up when an item is free shipping.

Ajeh:

Always Free Shipping is designed to make a Product have Free Shipping using the FREE SHIPPING! freeshipper shipping module ...

That shipping module is not really designed to have Zones in the conventional manner but is there for customization purposes ...

What are you trying to do with the Always Free Shipping setting on your products?

First of all, I have searched and searched the forums for a solution to my real problem and have not found an answer. It seems many others are having the same issue.

I was trying to use this solution as a workaround to a problem I am having when ALWAYS FREE SHIPPING products are the only items in the cart, and the customer has a shipping address outside zone USA.

If the customer's shipping address is outside zone USA and all items in their cart are ALWAYS FREE SHIPPING products, they get an error at checkout that says "Sorry, we are not shipping to your region at this time." I really need to get this fixed, and thought that this might be a solution since you said in previous post that the Free Shipping shipping option will show for it's designated zone, but won't appear for anything outside that zone while the regular shipping options for that zone will still appear as long as a weight is associated with the ALWAYS FREE SHIPPING products. I need a solution to this :wacko:

28 Jan 2014, 3:40 AM
#18
ajeh avatar

ajeh

Oba-san

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

Re: Calculated shipping doesn't show up when an item is free shipping.

What is suppose to determine the shipping on your Always Free Shipping products for outside of the US?

28 Jan 2014, 4:14 PM
#19
lolwaut avatar

lolwaut

Zen Follower

Join Date:
Dec 2010
Posts:
142
Plugin Contributions:
0

Re: Calculated shipping doesn't show up when an item is free shipping.

Ajeh:

What is suppose to determine the shipping on your Always Free Shipping products for outside of the US?

I am using the Shipping By Quote shipping module for zones outside the USA. It's an addon and is simply a modified version of the flat shipping module.

So, I want that module to recognize that there is a weight associated with the ALWAYS FREE SHIPPING products and have it appear for zones outside the USA... and have the Free Shipping option NOT APPEAR for zones outside the USA.

28 Jan 2014, 4:28 PM
#20
ajeh avatar

ajeh

Oba-san

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

Re: Calculated shipping doesn't show up when an item is free shipping.

Have you a link to that add on? I am not following how a clone of Flat Rate flat is calculating shipping regarding weight ... :lookaroun