X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   adding global product option through customer options tpl file (https://forum.x-cart.com/showthread.php?t=44600)

basslion2008 01-05-2009 11:24 AM

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.

ARW VISIONS 01-05-2009 12:24 PM

Re: adding global product option through customer options tpl file
 
why don't you search for products, check all and add it to all products at the same time?

basslion2008 01-10-2009 01:49 PM

Re: adding global product option through customer options tpl file
 
Quote:

Originally Posted by Ashley
why don't you search for products, check all and add it to all products at the same time?


where would i add it to all products? Product options allows this but then i cant customize the way it looks.

i want the options to be within a table with a nice banner on the top and background images in the table to make it stand out.


All times are GMT -8. The time now is 02:53 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.