View Single Post
  #24  
Old 01-02-2006, 01:34 PM
 
komarik komarik is offline
 

Advanced Member
  
Join Date: Jun 2003
Posts: 41
 

Default

Hey thanx for pointing me to the right direction. i did change it to radio buttons instead of a drop down. and i have images next to the name, but images are all the same.

What i did is i took this code from skin1/modules/Product_Options/product_variants.tpl

here is my /modules/Product_Options/customer_options.tpl
Code:
{* $Id: customer_options.tpl,v 1.16.2.3 2005/02/08 08:54:55 max Exp $ *} {if $product_options ne ''} <SCRIPT type="text/javascript" language="JavaScript 1.2"> var alert_msg = '{$alert_msg}'; </SCRIPT> {include file="modules/Product_Options/check_options.tpl"} {foreach from=$product_options item=v} {if $v.options ne '' || $v.is_modifier eq 'T'} <TR> <TD valign="top"><FONT class="CustomerMessage">{if $usertype eq "A"}{$v.class}{else}{$v.classtext|default:$v.class}{/if}</FONT></TD> <TD> {if $cname ne ""} {assign var="poname" value="$cname[`$v.classid`]"} {else} {assign var="poname" value="product_options[`$v.classid`]"} {/if} {if $v.is_modifier eq 'T'} <INPUT id="po{$v.classid}" type="text" name="{$poname}" value="{$v.default}"> {else} {* RADIO BUTTONS *************************************************} <table width="100%" style="border:1px solid #FFFFFF "> {foreach from=$v.options item=o} <tr> <td> <label> <input type="radio" name="{$poname}" value="{$o.optionid}"{if $o.selected eq 'Y'} selected{/if}> {$o.option_name} {if $v.is_modifier eq 'Y' && $o.price_modifier ne 0} ({if $o.modifier_type ne '%'}{include file="currency.tpl" value=$o.price_modifier display_sign=1}{else}{$o.price_modifier}%{/if}){/if}</label> </td> <td> [img]{$xcart_web_dir}/image.php?productid={$product.productid}&variantid={$v.variantid}[/img] </td> </tr> {/foreach} </table> </p> {/if} </p></TD> </TR> {/if} {/foreach} {/if} {if $product_options_ex ne ""} <TR> <TD colspan="2"><FONT id="exception_msg" color="red">{if $err ne ''}{/if}</FONT></TD> </TR> {if $err ne ''} <TR> <TD colspan="2"><FONT class="CustomerMessage">{$lng.txt_product_options_combinations_warn}:</FONT></TD> </TR> {foreach from=$product_options_ex item=v} <TR> <TD>{foreach from=$v item=o}{if $usertype eq "A"}{$o.class}{else}{$o.classtext}{/if}: {$o.option_name} {/foreach} </TD> </TR> {/foreach} {/if} {/if}
__________________
Webstroika.com - Web / Print / Multimedia
Lambo Doors - Direct Bolt-on Vertical Doors and Universal Vertical Door Conversion Kits - X-cart Gold 4.2.1
Reply With Quote