| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Remove thumbnail for certain products | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Is there a way to not display the product thumbnail for certain products?
I'm using detailed thumbs with the telafirma mod on my "call for price" items. Using the default product thumb (next to the description) is unnecessary and it causes the detailed thumbs below to be pushed slightly to the right. I'm assuming it's creating a column which becomes the left hand margin for the detail thumbs below. I'd like my description and detail thumbs to span the width of the product display area. I'm doing this only on my items with a price of "$0" which triggers "Call for Price". Any ideas would be great. Thanks! Joel
__________________
Version 4.0.17 |
|||||||
#2
|
|||||||
|
|||||||
![]() You would need to surround the code that calls the thumbnail with an {if} statement like this:
{if $product.taxed_price gt 0} Thumbnail code {/if}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() I'm think I'm actually looking to do the opposite though... I want to not show the default product thumb for the items with a price of zero. Will the if statement do the opposite?
__________________
Version 4.0.17 |
|||||||
#4
|
|||||||
|
|||||||
![]() That is what that statement will do. It essentially tells X-Cart to only display the image if the price is greater than zero.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() Sorry, I didn't notice the "gt".
That makes perfect sense. How can I eliminate the column though where the thumb was? http://www.thegrooveshoppe.com/xcart/product.php?productid=16177&cat=0&page=1&featured I want the details and the description to span that whole product area?
__________________
Version 4.0.17 |
|||||||
#6
|
|||||||
|
|||||||
![]() Put that if statement around the table cell that contains the image instead of just the image code.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||
|
|||||||
![]() One last question then... How do I center the detail images? They appear to be aligned left right now? Or is that may be what I should leave them as?
__________________
Version 4.0.17 |
|||||||
#8
|
|||||||
|
|||||||
![]() Pretty sure this line of code is what controls those:
{include file="modules/Detailed_Product_Images/product_images_detail.tpl"} You would need to format that with <div> tags to get it to center.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|||
X-Cart forums © 2001-2020
|