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.