I'm wondering if something like this would do the trick:
Code:
{if $image_counter ne ''}
<A HREF="javascript:swapImage('image.php?productid={$product.productid}&variantid={$variants[swatch].variantid}');">
{/if}
{$item.option_name}
{if $image_counter ne ''}
</A>
{/if}
I'm assuming you're using that image counter to count the # of images in your swatch, not sure. If so, if that eq 0, you have no image?
__________________
Instinctual
8,000 feet up in the Rocky Mountains of Colorado
X-Cart Versions 3.5.x - 4.0.x
IF you xcart, THEN you prosper, ELSE you fail. ELSEIF xcart fails, THEN you fix it, all the WHILE {loop}\'ing {section}\'s to feed your $smarty mind.
|