Topstar Posted October 21, 2008 Report Share Posted October 21, 2008 Hallo, wie kann ich bei einem Artikel den in in verschiedenen Farben anbiete z.B in rot die Auswahl farblich hinterlegen ? Link to comment Share on other sites More sharing options...
Suchender Posted October 22, 2008 Report Share Posted October 22, 2008 ichse nixxe verstehen guck mal template/module/product_options Link to comment Share on other sites More sharing options...
Topstar Posted October 23, 2008 Author Report Share Posted October 23, 2008 Hallo, meinte so wie z,B. in diesem Shop Link to comment Share on other sites More sharing options...
Suchender Posted October 23, 2008 Report Share Posted October 23, 2008 kein Plan, frag doch dort mal direkt. Link to comment Share on other sites More sharing options...
EG@YHD Posted October 24, 2008 Report Share Posted October 24, 2008 Jedes Attribut hat einen option value. z.B. <option value="gelb">gelb</option> und dann im css das so editiert option[value="goldgelb"] { background-color:#FFAE00; }[/code] Link to comment Share on other sites More sharing options...
LCDC Posted October 24, 2008 Report Share Posted October 24, 2008 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.