New Zenner
- Join Date:
- Jun 2005
- Posts:
- 39
- Plugin Contributions:
- 0
How to show free shipping icon when product weight is zero?
I would like to show the free shipping icon on the product info page when the weight of the product is "0".
All Products are marked as:
Always Free Shipping NO
Shipping/Packaging I have chosen 0 weight does NOT mean Free shipping ...
I have the following shipping modules turned on:
Zones
Free Shipping Options freeoptions
I have set the total >= 0.00
How do I change the code to show the shipping icon when the product weight is "0"?
I have looked at a similar thread but here Ajeh forced the shipping icon to show on all product info pages.
<!--bof free ship icon --> <?php if(zen_get_product_is_always_free_shipping($products_id_current)) { ?> <div id="freeShippingIcon"><?php echo TEXT_PRODUCT_FREE_SHIPPING_ICON; ?></div> <?php } ?> <!--eof free ship icon --> ``` > > Change to read: > ```php <!--bof free ship icon --> <?php if(true || zen_get_product_is_always_free_shipping($products_id_current)) { ?> <div id="freeShippingIcon"><?php echo TEXT_PRODUCT_FREE_SHIPPING_ICON; ?></div> <?php } ?> <!--eof free ship icon --> ``` > > That makes it always true so the Free Shipping icon will show ... > > Then if you need this on the listings, you need to do something similar ...Ajeh:
Okay ... this is very different ... :unsure:
If you want to see the Free Shipping icon, you need to force that by modifying the IF in the tpl_product_info_display.php ...
Copy that to your templates and overrides directory and edit this section: