| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
adding global product option through customer options tpl file | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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 |
|||||||
#2
|
|||||||||
|
|||||||||
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?
__________________
xcart 5.1.2 |
|||||||||
#3
|
|||||||
|
|||||||
Re: adding global product option through customer options tpl file
Quote:
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.
__________________
X Cart 4.5 |
|||||||
|
|||
X-Cart forums © 2001-2020
|