| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Replacing Price with Cufon | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi All,
I'm looking to replace the font for the price on my product details pages with Cufon. This works great, but the issue I'm having is when a product has product variants that change the price dynamically when a new selection is made: http://future.thefutureforward.com/~aso/Comrade.html By adding the following to customer_options.tpl around line 49 I am successfully swapping the font when you select a new option, but it's not doing the cufon replacement properly on page load: HTML Code:
Any thoughts on why my initial replacing isn't working on this would be great. Thanks!
__________________
nick hoag looking forward to the future http://thefutureforward.com xcart versions 4.2.x, 4.3.x, 4.4.x |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Maybe try
Code:
Just found this as well, which might work: Replacing ALL Ajax content with jQuery, including any future Ajax requests Code:
__________________
Darren Kierman Carlisle Glass (http://www.carlisleglass.co.uk/) ... running X-Cart Gold 4.4.5 [unix] |
|||||||||
#3
|
|||||||
|
|||||||
![]() Hi Darren,
Thanks so much for the idea. I've placed your "ajaxSuccess" code into the file "skin/common_files/modules/Product_Options/check_options.tpl", right towards the top. The price now successfully replaces on page load, but as soon as you change a product option that alters the price, the price won't change and firebug spits out the following error: default_price is not defined You can see this in action here, by trying to change a "frame color": http://future.thefutureforward.com/~aso/Comrade.html Let me know if you had another thought on where this code should be placed. Thanks so much!
__________________
nick hoag looking forward to the future http://thefutureforward.com xcart versions 4.2.x, 4.3.x, 4.4.x |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Sorry for the delay in replying.
Cufon adds extra tags and stuff to create the effect. Looks like it might be editing the contents of the div/span which controls the price display to much, and func.js isn't liking it.
__________________
Darren Kierman Carlisle Glass (http://www.carlisleglass.co.uk/) ... running X-Cart Gold 4.4.5 [unix] |
|||||||||
#5
|
|||||||
|
|||||||
![]() Yea, that's what I was thinking as well.
Totally at a loss on this one..
__________________
nick hoag looking forward to the future http://thefutureforward.com xcart versions 4.2.x, 4.3.x, 4.4.x |
|||||||
|
|||
X-Cart forums © 2001-2020
|