Jump to content

wygaszony obrazek produktu w kategorii gdy produkt jest niedostępny


AZADA_M

Recommended Posts

do klasy głównego obrazka produktu dodajemy warunek sprawdzający czy produkt jest dostępny czy nie, np:

{if $product.quantity<=0}outofstock{/if}

wtedy w stylach css tworzymy klasę:

.outofstock { 
opacity:0.5
}

cssy wstawiamy np. do global.css

warunek sprawdzający do głównego <img> w product-list.tpl

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...