Last active
August 29, 2015 14:04
-
-
Save icodesido/227c420180738a868da7 to your computer and use it in GitHub Desktop.
Amazon wishlist price calculator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prices = jQuery('#item-page-wrapper .price-section .a-color-price').text() | |
prices = prices.replace(/\s/g,'').split('£'); | |
total = 0; | |
var v; | |
for(var i = 0; i < prices.length; i++) { | |
v = parseFloat(prices[i]); | |
if (!isNaN(v)) total += v; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment