Tony Chill Posted March 18, 2020 Share Posted March 18, 2020 Hello, I'm trying to show a flag like NEW on every product with 0 quantity. Is it allowed to link the website? Link to comment Share on other sites More sharing options...
Mag-WebDesign Posted March 19, 2020 Share Posted March 19, 2020 Hello, Here is a piece of code i built for my product list and product pages, you just need to modify it with the way you want to display the flag. It takes into account the combinations stocks too. You will need to do a little css too, and if you want to display it only on product-list you'll just need to hide it on product pages with css.In Themes > name of your themes > templates > catalog > _partials > miniatures > product.tpl Add this piece of code at the end of your file and before the </div></div>{/if} closure (please adapt it to your display needs) : {block name='product_availability'} <span id="product-availability"> {if $product.show_availability && $product.availability_message} {if $product.availability == 'available'} <div class='instock'>▪</div><div class='instock hover'>✔ {l s='En stock'}</div> {elseif $product.availability == 'last_remaining_items'} <div class='instock'>▪</div><div class='instock hover'>✔ {l s='Derniers articles'}</div> {else} <div class='outofstock'>▪</div><div class='outofstock hover'>✘ {l s='Hors stock'}</div> {/if} {/if} </span> {/block} Hope it'll help. Link to comment Share on other sites More sharing options...
daninapoli Posted March 22, 2021 Share Posted March 22, 2021 scusate ci sono riuscito Link to comment Share on other sites More sharing options...
gray Posted September 8, 2021 Share Posted September 8, 2021 Has anyone got this to work on Ps1.7.7.7 please ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now