Exceptional images - gray if purple 1.9.x is not in stock

I want to display a product that is missing in a gray shaded background with a blur effect

when any product goes out of use, then it should be displayed with a gray tint or blur the slide.

What file can I change the code from? Please help me if anyone knows.

Thanks.

+5
source share
1 answer

You can customize here:

application / design / interface / package_name / THEMENAME / template / Catalog / product / list.phtml

Here is the code:

<?php if (!$product->isSaleable()): { echo '<style>.category-products li.item .product-image img{ opacity:0.6; filter: alpha(opacity=60); } </style>'; } endif;?> 

you can put this code at the end of your file.

+2
source

Source: https://habr.com/ru/post/1242618/


All Articles