Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

adding global product option through customer options tpl file

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-05-2009, 11:24 AM
 
basslion2008 basslion2008 is offline
 

Member
  
Join Date: May 2008
Posts: 24
 

Default 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
Reply With Quote
  #2  
Old 01-05-2009, 12:24 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default 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
Reply With Quote
  #3  
Old 01-10-2009, 01:49 PM
 
basslion2008 basslion2008 is offline
 

Member
  
Join Date: May 2008
Posts: 24
 

Default 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.
__________________
X Cart 4.5
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:47 PM.

   

 
X-Cart forums © 2001-2020