I read a lot the old forums of Cartthrob and here... Didn't find something to help me understand exactly how Hardcoded option work...
I'm trying to create what you can see in the capture screen that I just post.. All my html is done.
<div id="piping_color0" class="color_swatch" style="background:#FFFFFF; border:1px solid #ccc;" onclick="javascript:ApplyBindingColor(169); setBorder(0,23,'binding'); makerequest();"><img src="images/colorblk.png" alt="White" title="White"></div>
But I can't figure out how to create the script for the hardcoded option... I you can juste tell me some idea ou link me some post or article that you know that can help me i will very apperciate :)
Thx Guys!
EDIT: Here some new developpement from my part!
I menage to use Matrix to create all the Entry; option_value, option_name color_code and Price. Now my problem is when i'm putting the code together i have a error when I reload my page.
Parse error: syntax error, unexpected 'endif' (T_ENDIF) in /home/hakounan/public_html/clients/ogilvy/system/expressionengine/libraries/Functions.php(680) : eval()'d code on line 1585
{exp:cartthrob:item_options entry_id="{entry_id}" row_id="{row_id}"}
{options}
{if selected}
{option_label}: {option_name}<br />
{exp:channel:entries channel="products" dynamic="no"}
{binding}
<div id="{option_value}" class="color_swatch" style="background:#{color_code}; border:1px solid #ccc;" onclick="javascript:ApplyBodyColor(187); setBorder(0,7,'body'); makerequest();"><img src="{site_url}assets/images/colorblk.png" alt="{option_value}" title="{option_name}"></div>
{/binding}
{/exp:channel:entries}
{/if}
{/options}
{/exp:cartthrob:item_options}