Jump to content

How to not display photos in a category?


Recommended Posts

Hi...

 

Well, this is my WIP shop:- http://dsmcz.com/presta/en/

 

In most categories I want the default behavior, e.g. a thumbnail photo shown for each product...

 

But in some particular categories, it's not needed to have a photo, for instance:- http://dsmcz.com/presta/en/25-resistors

 

These products look pretty much the same, are really low value, and there are a lot of them...

 

For the customer, is would be better for a list type view, to findwhat they want...

 

I can't see any option to turn off photos for a particular category,  so is there a module to do this, or is it more involved to do this?

 

Thanks in advance...

 

Damian

Link to comment
Share on other sites

you cant turn off photos for particular category. unfortunately.

the only one way to achieve it is a modification of template files.

 

in category.tpl file you have to add if condition to check actualy viewed category ID

if ID = particular category id, hide pictures.

 

{if $smarty.get.id_category!=12}

image code here

{/if}

 

code above will do something like:

if id of currently viewed category is other than 12 - display image.

it mean that images will not appear on category id 12

Link to comment
Share on other sites

×
×
  • Create New...