Alright this is what I'm wondering. I have a page with products, it's just product name + a checkbox. Is it possible to display: none;
pre-written code that applies to the cart if the user checks the checkbox? Let's say this user wants a Basic standby overlay
and he checks the checkbox, this code gets added to the cart and it applies to the total price. I.E like this.
I got a jsFiddle here with the full page or you can check the live version here.
<table cellspacing="2" cellpadding="0" border="0" width="320">
<tr>
<td width="170" valign="top" align="left">
<div class="product_name">Basic standby overlay</div>
</td>
<td width="30" valign="top" align="center">
<input type="text" class="quantity" value="1" maxlength="2" />
</td>
<td width="70" valign="top" align="center">
<div class="product_total_cost price" data-val="10">10 €</div>
</td>
<td width="9" valign="top" align="right">
<div class="remove_product">X</div>
</td>
</tr>
</table>
<tr>
<td width="250">1x Basic standby overlay:</td>
<td width="15" align="left"><input class="test" type="checkbox" name="basic_standby" value="0" data-val="10" /></td>
</tr>
Also, this is not the same issue with the previous question this is a new question I'm wondering.