Hi.
If you tell us what version of Prestashop you have, I will give you instructions 😉
You need to choose a carrier with free shipping, as advised @Prestashop Addict
I assume you have Prestashop 8.x.
Open the file ./themes/your_theme/templates/catalog/_partials/product-flags.tpl
Under {/foreach} add this code:
{if (int)$product.additional_shipping_cost == 0} <style> .free-shipping-flag { background: #ffe300; color: black; padding: 0 5px; line-height: 1.25rem; height: 1.35rem; font-size: .75rem; font-weight: 600; border-radius: 3px; text-transform: uppercase; margin-top: 5px; } </style> <li class="free-shipping-flag"><i class="material-icons mi-local_shipping">local_shipping</i> {l s='Free' d='Shop.Theme.Catalog'}</li> {/if}
Result will be:
The full code will be:
{block name='product_flags'} <ul class="product-flags js-product-flags"> {foreach from=$product.flags item=flag} <li class="product-flag {$flag.type}">{$flag.label}</li> {/foreach} {if (int)$product.additional_shipping_cost == 0} <style> .free-shipping-flag { background: #ffe300; color: black; padding: 0 5px; line-height: 1.25rem; height: 1.35rem; font-size: .75rem; font-weight: 600; border-radius: 3px; text-transform: uppercase; margin-top: 5px; } </style> <li class="free-shipping-flag"><i class="material-icons mi-local_shipping">local_shipping</i> {l s='Free' d='Shop.Theme.Catalog'}</li> {/if} </ul> {/block}