Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Remove thumbnail for certain products

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-27-2005, 05:16 AM
 
joelc73 joelc73 is offline
 

Advanced Member
  
Join Date: Nov 2005
Posts: 42
 

Default Remove thumbnail for certain products

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
Reply With Quote
  #2  
Old 12-27-2005, 05:42 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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
Reply With Quote
  #3  
Old 12-27-2005, 06:06 AM
 
joelc73 joelc73 is offline
 

Advanced Member
  
Join Date: Nov 2005
Posts: 42
 

Default

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
Reply With Quote
  #4  
Old 12-27-2005, 06:08 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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
Reply With Quote
  #5  
Old 12-27-2005, 06:17 AM
 
joelc73 joelc73 is offline
 

Advanced Member
  
Join Date: Nov 2005
Posts: 42
 

Default

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
Reply With Quote
  #6  
Old 12-27-2005, 06:21 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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
Reply With Quote
  #7  
Old 12-27-2005, 06:34 AM
 
joelc73 joelc73 is offline
 

Advanced Member
  
Join Date: Nov 2005
Posts: 42
 

Default

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
Reply With Quote
  #8  
Old 12-27-2005, 06:37 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:46 AM.

   

 
X-Cart forums © 2001-2020