View Single Post
  #2  
Old 06-22-2005, 07:04 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default

OK, got X-cart to help me with this.

in customer/main/product.tpl change the second instance of the price to use a separate span tag, in this case product_price2:

Code:
{$lng.lbl_price}: <font class=ProductDetailsTitle><SPAN id="product_price2">{include file="currency.tpl" value=$product.price}</span>


and in /modules/Product_Options/check_options.tpl add this:

Code:
// Update price2 if(document.getElementById('product_price2')) document.getElementById('product_price2').innerHTML = currency_symbol+price_format(price, 2);

underneath // Update price so it looks like this:

Code:
// Update form elements // Update price if(document.getElementById('product_price')) document.getElementById('product_price').innerHTML = currency_symbol+price_format(price, 2); // Update price2 if(document.getElementById('product_price2')) document.getElementById('product_price2').innerHTML = currency_symbol+price_format(price, 2);

Works for me!

Dan
__________________
4.4.2

and

4.6.1
Reply With Quote