Skip to content

Instantly share code, notes, and snippets.

@ericdfields
Created February 3, 2017 15:30
Show Gist options
  • Save ericdfields/3d4ed9c7f7b559289a102207facd61a7 to your computer and use it in GitHub Desktop.
Save ericdfields/3d4ed9c7f7b559289a102207facd61a7 to your computer and use it in GitHub Desktop.
Add multiple items to an Amazon Cart with a single button
I've seen links around the web for a list of items and a single 'add to amazon cart' button.
I don't know how to do this more easily through an amazon-provided UI, but it seems that you can hack it together through URL params easy enough, like so:
https://www.amazon.com/gp/aws/cart/add.html?AssociateTag=your_tag&tag=your_tagQ&ASIN.1=B012NH05UW&Quantity.1=1&ASIN.2=B012M8LXQW&Quantity.2=1
* ASINs are the string after /dp/ in amazon URLs. (amazon.com/dp/string_is_here)
* Add as URL params w/ incrementing identifiers and quantity couplets (ASIN.1, Quantity.1, ASIN.2, Quantity.2…)
@TimothyMalan
Copy link

I spent hours looking for a while to add multiple items from a list to my cart and this was the only solution I found that actually worked. Someone even made an extension that doesn't work at the moment.

Thanks for the URL parameters solution stranger!

@ericdfields
Copy link
Author

ericdfields commented Jul 25, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment