View Single Post
  #1  
Old 05-30-2008, 04:44 AM
 
John Livesey John Livesey is offline
 

Advanced Member
  
Join Date: May 2008
Posts: 33
 

Default Category based images in product.tpl

Hi all,

I was wondering if its possible to place static images on a page depending on which category the product falls under?

For example on the following page the images (two man install, free shipping, 14 day install) are correct.

http://www.cortneyco.com/shop/product.php?productid=11&cat=1&page=1

But on the page below the images are incorrect because it's using the generic product.tpl template.

http://www.cortneyco.com/shop/product.php?productid=17&cat=4&page=1

Is there anyway (programatically) that I could use a CSS class, product ID or custom field to pull in images relevant to each category?

I know I could possibly use separate product.tpls but this is a bit cumbersome.

Obviously, if there are any mods out there that do this (commercial or free) then I'm happy to be pointed in the right direction.

Thanks in advance

John
__________________
Version: 4.1.9
Reply With Quote