| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Price listed twice, option modifiers only changing one | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Price listed twice, option modifiers only changing one
I have the price displayed at the very top of the product page, and also at the bottom. When I have a product with a modifier e.g. Red +бё10.00 and I select it, it only changes one instance of the price (the topmost/first price) to reflect the modifer.
I know the product_price span tags: Code:
are responsible for updating the price based on the options, but is there a reason why it only updates one? How do I get both to update? thanks Dan
__________________
4.4.2 and 4.6.1 |
|||||||
#2
|
|||||||
|
|||||||
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:
and in /modules/Product_Options/check_options.tpl add this: Code:
underneath // Update price so it looks like this: Code:
Works for me! Dan
__________________
4.4.2 and 4.6.1 |
|||||||
|
#3
|
|||||||
|
|||||||
Re: Price listed twice, option modifiers only changing one
Just to let anyone on 4.5.x know, this is now in func.js not check_options.tpl
__________________
------------------------------------------------ Darren |
|||||||
#4
|
|||||||
|
|||||||
Re: Price listed twice, option modifiers only changing one
Quote:
where is func.js located? i am trying to do the same thing, i have named my template at the bottom of the page product_details_bottom.tpl
__________________
Gregg X-Cart GOLD Plus 4.5.4 |
|||||||
#5
|
|||||||
|
|||||||
Re: Price listed twice, option modifiers only changing one
Not at my desk, but in /modules/Product_Options/ ?
__________________
------------------------------------------------ Darren |
|||||||
#6
|
|||||||
|
|||||||
Re: Price listed twice, option modifiers only changing one
Quote:
i found it, will changing the code in the above post also make the price, product sku, and thumbnail image update just as it does with the top one on my page
__________________
Gregg X-Cart GOLD Plus 4.5.4 |
|||||||
#7
|
|||||||
|
|||||||
Re: Price listed twice, option modifiers only changing one
that code doesnt appear to exist in 4.5.x in func.js
__________________
Gregg X-Cart GOLD Plus 4.5.4 |
|||||||
|
|||
X-Cart forums © 2001-2020
|