Zen Cart Logo
Forums / General Questions / Show Item is FREE shipping in the CART.

Show Item is FREE shipping in the CART.

Views: 3,767

Results 1 to 20 of 43
12 Mar 2011, 4:52 PM
#1
gloerick avatar

gloerick

Zen Follower

Join Date:
Feb 2006
Location:
Boise, ID
Posts:
330
Plugin Contributions:
0

Show Item is FREE shipping in the CART.

Hello Ajeh, :-)

Might there be a way to SHOW an item has FREE shipping ?

What is happening is a cx is purchasing FOOD "free shipping"

the cart is set for the Item to have free shipping so NO RESULTS from
the UPS sever "EMPTY ESTIMATE and Item weight"

Can I have the Item in the cart SHOW it is set for FREE SHIPPING
just like it would if some other attribute was set for that item,
like if it were a shirt and "RED" was selected.

I would just like it to so the Item has FREE shipping associated with it
as I am getting emailed that people think we do not ship to their area" but is NOT saying that
just a cx assumption as NO shipping is showing.

Thx if you can
Erick

12 Mar 2011, 4:58 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Show Item is FREE shipping in the CART.

How have you marked a Product to be Free Shipping?

If a Product is Free shipping to everyone, then you can mark it as:

Always Free Shipping: **Yes, Always Free Shipping **

Then, install the FREE SHIPPING! freeshipper shipping module ...

When only Always Free Shipping Products are in the cart, then only the FREE SHIPPING! freeshipper module will show and the others will be disabled ...

When there is a Mixed cart of Always Free Shipping and regular Products in the Cart the Always Free Shipping Product will not count towards shipping ...

12 Mar 2011, 5:13 PM
#3
gloerick avatar

gloerick

Zen Follower

Join Date:
Feb 2006
Location:
Boise, ID
Posts:
330
Plugin Contributions:
0

Re: Show Item is FREE shipping in the CART.

Right, that is how it is set, with the free shipping and free shipping options
and in a mixed cart it does ONLY show for the NON food Item.

but when it is ALL food, people are emailing me thinking we will not ship to them
as the shipping estimator is blank "as it should be but they do not know that"

so I just wanted to SHOW FREE SHIPPING under the Item in the cart just as some
attribute would if one was selected for the Item, this way they can SEE IT IS FREE
and not worry about it.

if you like, to see what I mean, please go to http://efpsupply.com and click on
EMERGENCY MEALS on the left and add any one of them. you will see it is not
showing the items as free, but ARE set in the items setup.

make sence ? thx for the help by the way :-)

Erick

12 Mar 2011, 5:28 PM
#4
gloerick avatar

gloerick

Zen Follower

Join Date:
Feb 2006
Location:
Boise, ID
Posts:
330
Plugin Contributions:
0

Re: Show Item is FREE shipping in the CART.

O, man..

Ya' need to take OFF the ALWAYS FREE SHPPING in the Items setup
and set the free shipping zone to USA,

but then how do I tell it the differance between FOOD and NOT FOOD
so UPS will appear for NON food even in the USA ? as if I set free shipping mod
to USA then it will let free shipping to ALL ITEMS, not JUST FOOD ?

getting a bit lost on how to get it to tell the differance in food and non
and to canada always pays for shipping EVEN FOOD..

lost
Erick

12 Mar 2011, 5:37 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Show Item is FREE shipping in the CART.

Why are you also using Free Shipping Options freeoptions?

If you go to the Catalog ... Product Types ... and click on EDIT LAYOUT ... you have a choice to display Free Shipping icon on the Product _info and Listings ...

Product Free Shipping Image Status - Catalog
Show the Free Shipping image/text in the catalog?

I am not seeing a blank on the Shipping Estimator I see the FREE SHIPPING! freeshipper in the Shipping Estimator ...

If I add a Product with shipping, I see the Free Shipping Options freeoptions and UPS shipping for the Product that is not Free Shipping ...

12 Mar 2011, 5:41 PM
#6
gloerick avatar

gloerick

Zen Follower

Join Date:
Feb 2006
Location:
Boise, ID
Posts:
330
Plugin Contributions:
0

Re: Show Item is FREE shipping in the CART.

because I am lost :-(
sitting here messing with it, trying to get FOOD FREE in USA only
and shipping on all else and EVERY ITEM shipping to canada.

lost
Erick

12 Mar 2011, 5:42 PM
#7
gloerick avatar

gloerick

Zen Follower

Join Date:
Feb 2006
Location:
Boise, ID
Posts:
330
Plugin Contributions:
0

Re: Show Item is FREE shipping in the CART.

It there a way to MASS chage Items to take OFF the "always free shipping" in the items setup pages ?

12 Mar 2011, 5:52 PM
#8
gloerick avatar

gloerick

Zen Follower

Join Date:
Feb 2006
Location:
Boise, ID
Posts:
330
Plugin Contributions:
0

Re: Show Item is FREE shipping in the CART.

Image is set to on, but does not show, must be the template I guess.

12 Mar 2011, 5:56 PM
#9
gloerick avatar

gloerick

Zen Follower

Join Date:
Feb 2006
Location:
Boise, ID
Posts:
330
Plugin Contributions:
0

Re: Show Item is FREE shipping in the CART.

but IF I turn OFF the FREE SHIPPING now in the items setup page the free shipping no loger shows.

geez this is tough.. might there be a way to set the food shipped in USA to FREE
and normal shipping for other items and always shipping to canada ?

very lost
Erick

12 Mar 2011, 6:04 PM
#10
gloerick avatar

gloerick

Zen Follower

Join Date:
Feb 2006
Location:
Boise, ID
Posts:
330
Plugin Contributions:
0

Re: Show Item is FREE shipping in the CART.

Is there a mod to have the ALWAYS FREE SHIPPING setup in the items setup page
to NOT be ALWAYS, but have it run on the shipping zone ?

cause, it works fine if in the US, it will do free shipping on the Items set to ALWAYS FREE SHIPPING and I
can do that per item, the issue is the ALWAYS FREE SHIPPING is INCLUDING CANADA, can it be EXCLUDED
when the ALWAY FREE SHIPPING is selected in the item setup ?

maybe ?
this sounds right ?

Erick

12 Mar 2011, 6:09 PM
#11
gloerick avatar

gloerick

Zen Follower

Join Date:
Feb 2006
Location:
Boise, ID
Posts:
330
Plugin Contributions:
0

Re: Show Item is FREE shipping in the CART.

but off hand is there a way to get the cart to show "ITEM HAS FREE SHIPPING IN Continental US"
under it in the cart ?

12 Mar 2011, 6:44 PM
#12
gloerick avatar

gloerick

Zen Follower

Join Date:
Feb 2006
Location:
Boise, ID
Posts:
330
Plugin Contributions:
0

Re: Show Item is FREE shipping in the CART.

Everything works until CANADA, can there be a way to hard code out canada from my always free shipping ?

12 Mar 2011, 8:49 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: Show Item is FREE shipping in the CART.

You would need to customize the code for the shipping class and change it to:```
function calculate_boxes_weight_and_tare() {
global $total_weight, $shipping_weight, $shipping_quoted, $shipping_num_boxes;

// bof: add back weight for Canada
global $order, $cart;
if ($order->delivery['country']['id'] == 38) {
$total_weight += $_SESSION['cart']->free_shipping_weight;
}
// eof: add back weight for Canada

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


Then in the shipping modules such as USPS you would need to recheck the cart to ignore the block on Always Free Shipping:
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
  $this->enabled = ((MODULE_SHIPPING_USPS_STATUS == 'True') ? true : false);
}

// bof: allow for Canada
if ($order->delivery['country']['id'] == 38) {
$this->enabled = true;
}
// eof: allow for Canada

if ($this->enabled) {


Then, add weight to the Product like all you usually would so Canada can calculate shipping ... Mark the Product as Always Free Shipping ...

NOTE: this assumes you are only shipping to the US and Canada by setting Zones on the Shipping Module for the US and Canada ...
13 Mar 2011, 12:49 AM
#14
gloerick avatar

gloerick

Zen Follower

Join Date:
Feb 2006
Location:
Boise, ID
Posts:
330
Plugin Contributions:
0

Re: Show Item is FREE shipping in the CART.

By GOD your GOOD !! that did it, free when I have FOOD and USA address, and cost when to canada !!
PERFECT. and yes I do have zones set :-)

might you have a way to show the item is free shipping UNDER the item in the cart like an attribute does ?

13 Mar 2011, 1:39 AM
#15
ajeh avatar

ajeh

Oba-san

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

Re: Show Item is FREE shipping in the CART.

You could customize your templates and overrides for the:
/includes/templates/your_templates_dir/templates/tpl_shopping_cart_default.php

and change the line around 85 to read:

<a href="<?php echo $product['linkProductsName']; ?>"><span id="cartImage" class="back"><?php echo $product['productsImage']; ?></span><span id="cartProdTitle"><?php echo $product['productsName'] . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a><?php echo '<br />' . (zen_get_show_product_switch($product['id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH') ? (zen_get_product_is_always_free_shipping($product['id']) ? TEXT_PRODUCT_FREE_SHIPPING_ICON . '<br />' : '') : '');?>
13 Mar 2011, 2:01 AM
#16
gloerick avatar

gloerick

Zen Follower

Join Date:
Feb 2006
Location:
Boise, ID
Posts:
330
Plugin Contributions:
0

Re: Show Item is FREE shipping in the CART.

ok will try to find, what program do you use to see line nubmers ?
I just use notepad or word pad

13 Mar 2011, 2:12 AM
#17
gloerick avatar

gloerick

Zen Follower

Join Date:
Feb 2006
Location:
Boise, ID
Posts:
330
Plugin Contributions:
0

Re: Show Item is FREE shipping in the CART.

I found the spot, if you add an item you will see TEST under it,
but the code you gave displays the entire Item again,
I just need it to reconize that the ITem is set to free shipping
and if it is then show, ITEM HAS FREE SHIPPING or something.

do I make sence ?

13 Mar 2011, 3:14 AM
#18
ajeh avatar

ajeh

Oba-san

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

Re: Show Item is FREE shipping in the CART.

The line I gave you is the original line plus, what is in RED is the new code to display the Free Shipping icon ...

13 Mar 2011, 5:24 AM
#19
gloerick avatar

gloerick

Zen Follower

Join Date:
Feb 2006
Location:
Boise, ID
Posts:
330
Plugin Contributions:
0

Re: Show Item is FREE shipping in the CART.

Got cha'
but, not showing the free shipping icon ?

   <td class="cartProductDisplay">

<a href="<?php echo $product['linkProductsName']; ?>"><span id="cartImage" class="back"><?php echo $product['productsImage']; ?></span><span id="cartProdTitle"><?php echo $product['productsName'] . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a>
<br class="clearBoth" />

<?php echo '<br />' . (zen_get_show_product_switch($product['id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH') ? (zen_get_product_is_always_free_shipping($product['id']) ? TEXT_PRODUCT_FREE_SHIPPING_ICON . '<br />' : '') : '');?>
13 Mar 2011, 6:30 AM
#20
gloerick avatar

gloerick

Zen Follower

Join Date:
Feb 2006
Location:
Boise, ID
Posts:
330
Plugin Contributions:
0

Re: Show Item is FREE shipping in the CART.

GOT IT, I turned ON
Product Free Shipping Image Status - Catalog
under CATALOG-Product Type Info Page Layout options :: Product - General

THX SO MUCH fo rth learning leson :-)

Hope again this can help others..

Thx
Erick