| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
If Satatement to remove Images | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() It appears your code will do the opposite of what you want, it should display the thumbnail. To test this, just temporarily add some text to the "if" statement...
{if $cat != '126'|| $manufacturers[id].manufacturer == '0' } TEST <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}
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
#3
|
|||||||
|
|||||||
![]() Thank you. I will give it a try.
__________________
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 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Try this...
{if $cat != '126'|| $manufacturers[id].manufacturer == '0' } TEST {else} <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} If all you see for cat #126 is "TEST" then you know the code works. You can replace "TEST" with whatever you want to do with cat #126 instead of displaying the thumbnail.
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
|
#5
|
|||||||
|
|||||||
![]() Thank you sir.
Much appreciated.
__________________
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 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|