![]() |
Replacing Price with Cufon
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:
<select id="po{$v.classid}" name="{$poname}"{if $disable} disabled="disabled"{/if}{if $nojs ne 'Y'} onchange="javascript: check_options();Cufon.replace('.details h3', {literal}{fontFamily: 'Flama'}{/literal});"{/if}> Any thoughts on why my initial replacing isn't working on this would be great. Thanks! |
Re: Replacing Price with Cufon
Maybe try
Code:
Cufon.refresh(); Just found this as well, which might work: Replacing ALL Ajax content with jQuery, including any future Ajax requests Code:
$(document).ajaxSuccess(function() { |
Re: Replacing Price with Cufon
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! |
Re: Replacing Price with Cufon
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. |
Re: Replacing Price with Cufon
Yea, that's what I was thinking as well.
Totally at a loss on this one.. |
All times are GMT -8. The time now is 05:27 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.