_**Project Overview:**_
I am looking for a developer to write a script (JavaScript, PHP, or any suitable language) that will add multiple items to a shopping cart on a site where items are added to the cart individually by loading a URL for each product.
The script will accept a delimited URL parameter containing up to 10 product IDs, verify those items are not already in the user's cart, and then proceed to load each item into the user's cart by opening a series of background popup windows. The script will then close the windows it created and redirect the user to their cart.
I am happy to answer any questions about this project if the spec is not clear. There are no restrictions on languages or methods so long as the end result is achieved with cross-browser compatibility.
I look forward to your bids and questions and would like to move forward on this project as quickly as possible.
Thanks!
## Deliverables
**_Specifics:_**
1. Script input will look like this: [login to view URL]|8326|6057|754
1. Note that ids are numeric and pipe-delimited and that the "ids" parameter accepts a variable number of ids. Maximum number of ids will be 10.
2. The user will see a simple landing page instructing them to "Please Wait while your cart is loaded" while the script is executing.
3. The script will visit the user's shopping cart in a background window and scrape its contents using jQuery selectors, XPath queries or similar method.
1. For example, if any items exist in a cart, the first item can be scraped with jQuery like so: $('[login to view URL]')[0].[login to view URL]('id=')[1].split('"')[0] which will return the numerical id of the first product in the cart.
4. If an item already exists in a cart it will be skipped so that it's not added twice.
5. The script will then iterate through adding the items to the cart that don't already exist. For the example input above there are 4 URLs to load in background windows:
1. [login to view URL]
2. [login to view URL]
3. [login to view URL]
4. [login to view URL]
6. Upon completion the background windows will be closed and the user will be redirected to their shopping cart.
7. Any inbound URL parameters must be preserved with the final redirection to the shopping cart.