For example I created a wish list of the books needed for my fall classes.
Is there a one click (or other short/easy) way to add all the items into my cart other than clicking on "Add to Cart" for each individual item?
Web Applications Stack Exchange is a question and answer site for power users of web applications. It only takes a minute to sign up.
Sign up to join this communityFor example I created a wish list of the books needed for my fall classes.
Is there a one click (or other short/easy) way to add all the items into my cart other than clicking on "Add to Cart" for each individual item?
There doesn't appear to be a way to do this other than by scripting.
This seems like a good suggestion to put to Amazon though.
Try this script:
Array.prototype.forEach.call(document.querySelectorAll('[data-action=reg-item-inline-order]'), function(e) { setTimeout(function() { e.click() }, 100) })
The selector may have to change in the future, but this worked for me.
data-action
is add-to-car'.
data-add-to-cart` has the item's metadata in it, which is super useful (you can parse price and stuff out of the string).
Array.prototype.forEach.call(document.querySelectorAll('a[role=button]'), function(e) { if(e.innerHTML.trim()=="Add to Cart") { setTimeout(function() { e.click() }, 100) } })
Seems like I ran into the same issue a few days ago. Made a thing that helps as browser extension. Try it out, let me know your thoughts? Thanks! https://chrome.google.com/webstore/detail/wishlist-to-cart-for-amaz/hcidhephpgibbomfkllaaebnlokpemim?hl=en-US