adding global product option through customer options tpl file
I have a drop down box i would like to implement on the product options for all products and i would like it to add to the price of the item depending on what selection someone makes.
here is my drop down box code
<td valign="middle" height="25">Need Protection?</td>
<td valign="middle">
<select id="po116" name="product_options[116]" onchange="javascript: check_options();">
<option value="171" selected="selected">No Thanks</option>
<option value="172">I am not ordering a Phone</option>
<option value="161">2 Year Protection under $250 (+$24.99)</option>
<option value="162">2 Year Protection under $500 (+$34.99)</option>
<option value="163">2 Year Protection under $750 (+$44.99)</option>
<option value="164">2 Year Protection under $1000 (+$54.99)</option>
<option value="165">2 Year Protection under $1500 (+$74.99)</option>
<option value="166">4 Year Protection under $250 (+$39.99)</option>
<option value="167">4 Year Protection under $500 (+$49.99)</option>
<option value="168">4 Year Protection under $750 (+$59.99)</option>
<option value="169">4 Year Protection under $1000 (+$69.99)</option>
<option value="170">4 Year Protection under $1500 (+$89.99)</option>
</select>
</td>
What i did was i made the option available for one product and then viewed the product in my browser and copied the source code for the section and then disabled the product.
I am wondering if i can place this code in the customer_option.tpl file so it shows up globally for all products and if a person makes a selection, will it modify the product price
Any help is greatly appreciated.
__________________
X Cart 4.5
|