-_-' got it working but it's not exactly how I want it, with this method, the Color class has to be the first choice, I still wish i could somehow point out just the color class, no matter in what order it gets added into the product options.
here is the code:
Code:
{* $Id: customer_options.tpl,v 1.6 2002/10/22 10:27:05 olga Exp $ *}
{section name=product_option }
{ $product_options[product_option].opttext }
{if $product_options[product_option].options ne ""}
{assign var="options" value=$product_options[product_option].options}
{section name=option loop=$options}
[img]{$ImagesDir}/colors/{$options[option].option}.jpg[/img]
{/section}
{/if}
{/section}