View Single Post
  #44  
Old 03-21-2007, 07:33 AM
  HWT's Avatar 
HWT HWT is offline
 

eXpert
  
Join Date: Jan 2005
Location: Massachusetts, USA
Posts: 392
 

Default Re: Variant chart in product description.

Thanks to everybody who has contributed to this mod! I've been using it successfully for over a year now, but I just ran into situation where it ended up displaying a mess.

I have tables which come in 6 colors and 3 heights, which result in 18 unique SKU's. So, I happily set it up as a variant for color and one for height. The result...an 18 SKU long table!!!

To get rid of it, I simply used:

Code:
{if $product.categoryid == xxx} {else} <!-- Variants table --> (. . .variants table code . . .) <!-- end Variants table --> {/if}

where xxx is the category id number

The result is the complete removal of the variant tables from the products in a specific category.

This little bit of code is, of course, not specific to this mod, but I thought some might find it useful if they're running into the same issue.
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10
Reply With Quote