View Single Post
  #1  
Old 11-04-2011, 01:28 PM
 
BillV BillV is offline
 

Senior Member
  
Join Date: Oct 2011
Posts: 105
 

Default If Satatement to remove Images

I am looking to remove the thumbnail images from the Products listing. I only want the images removed if the category is "126" and the product is assigned to a manufacturer.

I have many products that are assigned to categories other that cat 126 and are not assigned to a manufacturer. For these products, I want the thumbnail to show.

I have added the following to the products_list.tpl. but it does not seem to work.

{if $cat != '126'|| $manufacturers[id].manufacturer == '0' }

<a href="{$url}">{include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.tmbn_x image_y=$product.tmbn_y product=$product.product tmbn_url=$product.tmbn_url}</a>

{/if}

Thank you.
__________________
Bill

X-Cart 4.4.4
Websitecm - CDSEOPro
BCSEngineering - Back in Stock
BCSEngineering - Banners
BCSEngineering - Customer Rewards
XcartMods - Smart Template 4.4.4
XcartMods - Watermarked Images
Alteredcart - On Sale
Reply With Quote