Forums / General Questions / Why shipping estimator shows with free shipping item

Why shipping estimator shows with free shipping item

Views: 768

Results 1 to 4 of 4
19 Oct 2012, 5:22 PM
#1
grandpastoys avatar

grandpastoys

New Zenner

Join Date:
Jul 2012
Location:
Kentucky
Posts:
38
Plugin Contributions:
0

Why shipping estimator shows with free shipping item

When a customer has a free shipping item in the cart there is also a shipping estimator still displayed. this has confused some of my customers. why is it displayed and how can i get rid of the estimator for a free shipping item?
Thanks,
Robert

21 Oct 2012, 3:20 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Why shipping estimator shows with free shipping item

Providing you do not have other shipping modules display when you have a cart that is Free Shipping ...

Using your templates and overrides, you could customize the file:
/includes/templates/your_templates_dir/templates/tpl_shopping_cart_default.php

and add the code in RED:

<?php
[B]if ($shipping_weight == 0) {
  echo '<div>Free Shipping! ' . '<br></div>';
}
[/B]      if (SHOW_SHIPPING_ESTIMATOR_BUTTON == '2'[B] && $shipping_weight > 0[/B]) {

Now the Shipping Estimator will not show when you have set the Shipping Estimator to display on the shopping cart (set to 2) ...

NOTE: if you were trying to hide the button for the Shipping Estimator when set to 1, you would do a similar change to the code higher up in the code where it refers to:

    if (SHOW_SHIPPING_ESTIMATOR_BUTTON == '1') {

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!

24 Jan 2013, 12:48 AM
#3
mickmo68 avatar

mickmo68

Zen Follower

Join Date:
Apr 2008
Location:
Boston
Posts:
129
Plugin Contributions:
0

Re: Why shipping estimator shows with free shipping item

Just FYI, if you want to have the "Free Shipping" image on the cart page -- replace in
/includes/templates/your_templates_dir/templates/tpl_shopping_cart_default.php

<?php
      if (SHOW_SHIPPING_ESTIMATOR_BUTTON == '2') {

with

<?php
if ($shipping_weight == 0) {
  echo '<div id="freeShippingIcon"><img src="includes/templates/template_default/images/always-free-shipping.gif" alt="Always Free Shipping" title=" Always Free Shipping " width="94" height="54"></div></div>';
}
      if (SHOW_SHIPPING_ESTIMATOR_BUTTON == '2' && $shipping_weight > 0) {

Style to page

24 Jan 2013, 1:54 AM
#4
mickmo68 avatar

mickmo68

Zen Follower

Join Date:
Apr 2008
Location:
Boston
Posts:
129
Plugin Contributions:
0

Re: Why shipping estimator shows with free shipping item

Just FYI, if you want to have the "Free Shipping" image on the cart page -- replace in
/includes/templates/your_templates_dir/templates/tpl_shopping_cart_default.php

<?php
      if (SHOW_SHIPPING_ESTIMATOR_BUTTON == '2') {

with

<?php
if ($shipping_weight == 0) {
  echo '<div id="freeShippingIcon"><img src="includes/templates/template_default/images/always-free-shipping.gif" alt="Always Free Shipping" title=" Always Free Shipping " width="94" height="54"></div></div>';
}
      if (SHOW_SHIPPING_ESTIMATOR_BUTTON == '2' && $shipping_weight > 0) {

Style to page