
Originally Posted by
mc12345678
Glad it works.
If you have the time, could you post your solution so that other interested individuals can reproduce your success?
Here we go,
provided you have enabled the freeoptions with a value that allows free shipping over a order value, if you mod (after backing up the original files) the two files, you will have the free shipping icon appear when the product price is over that limit.
If it does not work, let me know.
includes/templates/yourtemplate/templates/tpl_product_info_display.php
find
line 112
PHP Code:
<?php if((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 } ?>
change
PHP Code:
<?php if((zen_get_product_is_always_free_shipping($products_id_current) && $flag_show_product_info_free_shipping)|| ($cleaned = str_replace("€ " , "",$products_price) >=MODULE_SHIPPING_FREEOPTIONS_TOTAL_MIN)){ ?>
<div id="freeShippingIcon"><?php echo TEXT_PRODUCT_FREE_SHIPPING_ICON; ?></div>
<?php } ?>
includes/module/yourtemplate/product_listing.php
find
PHP Code:
$lc_text .= '<br />' . (zen_get_show_product_switch($listing->fields['products_id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH') ? (zen_get_product_is_always_free_shipping($listing->fields['products_id']) ? TEXT_PRODUCT_FREE_SHIPPING_ICON . '' : '') : '');
change
PHP Code:
$lc_text .= '<br />' . (zen_get_show_product_switch($listing->fields['products_id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH') ? (zen_get_product_is_always_free_shipping($listing->fields['products_id']) || ((int)preg_replace('#[^0-9]+#', '', $lc_price)/100 >= MODULE_SHIPPING_FREEOPTIONS_TOTAL_MIN) ? TEXT_PRODUCT_FREE_SHIPPING_ICON . '' : '') : '');
If you try it and it works, let me know if it does not work, let me know,but I do not take responsibility about, however...
ciao from Italy