Woot! Off Helper

By Hink Last update May 21, 2010 — Installed 1,397 times.

Price does not work

in
Subscribe to Price does not work 5 posts, 4 voices



Madhur Jain User
FirefoxWindows

Always come back with a $NaN

 
orangechicken User
FirefoxMacintosh

The fix is to change the priceString lines to:

var priceString = $('div.productDescription:first > h3:first span.amount').html();
var price = Number( priceString );
priceString = ( price + 5 ).toFixed(2);
$('div.productDescription:first > h3:first span.amount').html( priceString );

 
Shaun Farrugia User
FirefoxMacintosh

Or open and edit and use this version of the lines

// Show Total Price
var priceString = $('div.productDescription:first > h3:first > .money > .amount').html();
var price = Number( priceString.substring( 0, priceString.length ) );
priceString =  "$" + ( price + 5 ).toFixed(2);
$('div.productDescription:first > h3:first').html( priceString );
$('ul#shippingOptions > li:first').html( '$' + ( price * 2 + 5 ).toFixed(2) + " for 2 | $" + ( price * 3 + 5 ).toFixed(2) + " for 3" );

// Check for WootOff

 
i<3monkeys User
FirefoxX11

Thanks Shaun. I tried orangechicken's suggestion and it hadn't worked. With yours it's working again.

 
Shaun Farrugia User
FirefoxWindows

Heheh no problem. I had to come back here to remember what code i changed so that I could update my work computer :0

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel