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!