You can add to the IF that the Product Price is >= 99.00 ...
I would use the products_price_sorter field as that price is a pre-calculated "lowest" price for the Product ...
You can add to the IF that the Product Price is >= 99.00 ...
I would use the products_price_sorter field as that price is a pre-calculated "lowest" price for the Product ...
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!
See if this helps you out by changing that code to read:
Code:<!--bof free ship icon --> <?php if(zen_products_lookup((int)$_GET['products_id'], 'products_price_sorter') >= 99 && zen_get_product_is_always_free_shipping($products_id_current) && $flag_show_product_info_free_shipping) { ?> <div id="freeShippingIcon"><?php echo TEXT_PRODUCT_FREE_SHIPPING_ICON; ?></div> <?php } ?> <!--eof free ship icon -->
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!
I made the changes as you suggested and made sure my configurations were correct in my admin for this to show, however, the Free Shipping Icon is not displaying (Im testing on a product that I know satisfies the price point).
I thought there was a 'Free Shipping' Image that comes with the default ZC package or am I mistaken?
Thank you,
autoace
That's 'cause I goobered ...
I forgot you are not using the Always Free Shipping, just the price for this ...
Change the && to || in this line:
See if that doesn't work better off the price ...Code:<?php if(zen_products_lookup((int)$_GET['products_id'], 'products_price_sorter') >= 99 || zen_get_product_is_always_free_shipping($products_id_current) && $flag_show_product_info_free_shipping) { ?>![]()
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!
Thank you - it works! I even tested to make sure it works in both conditions and lowered the price of the item below the price point and the Free Shipping Icon DID NOT display!
One last question, is it possible to have this work on the product listing pages and if so can you guide me in the right direction.
Thanks very much for your help.
Thank you,
autoace
You can do something similar any where that you find the free shipping code and adapt the new code ...
The products_id will be called in a variety of ways based on where you are in the code ... if you look through code in the general area, you should be able to find how it is referenced ...
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!