Jump to content
xt:Commerce Community Forum

Attribute farblich hinterlegen


Topstar

Recommended Posts

Der Value ist nicht der Attributname, sondern eine fortlaufende Nummer.

Ich habe es so gelöst

bei type="radio" in der product_options_selection.html

{if $options!=''}


<table width="100" border="0" cellspacing="0" cellpadding="0">

  {foreach name=outer item=options_data from=$options} 

  <tr>

    <td valign="top" class="main"><b>{$options_data.NAME}:</b> </td>

    <td class="main">

        <table width="100" border="0" cellspacing="0" cellpadding="0">


  {foreach key=key_data item=item_data from=$options_data.DATA}

          <tr>

              <td class="main">

  <input type="radio" name="id[{$options_data.ID}]" value="{$item_data.ID}" checked="checked" /></td>

                <td class="option{$item_data.ID}">


  {$item_data.TEXT} {if $item_data.PRICE!=''}( {$item_data.PREFIX}{$item_data.PRICE} ){/if}

  				</td>

            </tr>

{/foreach}

        </table>

    </td>

  </tr>

  {/foreach} 

</table>

{/if}
bei Selects ist es einfacher dann noch das CSS

.prodOptionsDropSel option[value="1"]  {background-color:#000000; color: #ffffff;}

.option1 	{background-color:#000000; color: #ffffff;}

.prodOptionsDropSel option[value="2"]	{background-color:#993300; color: #ffffff;}

.option2 	{background-color:#993300; color: #ffffff;}


Schön, mal helfen zu können :D

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...