Re: If a product option exists, display icon on products_t.tpl
Well, the xcart_classes table contains "class" that appears to contain whatever you name your option... things like color, size, etc. and in my case "color" is repeated at least several times. That does look like what we need to look at to make the determination. the field productid is also in that table.
Maybe something like
{if $classes[productid].class ="color"}Icon here{/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
|