NeweggBot icon indicating copy to clipboard operation
NeweggBot copied to clipboard

Searching for multiple items; but buying just one

Open Johny132 opened this issue 4 years ago • 1 comments

Im trying to use the bot to search for multiple out of stock items but to buy 1 of them if it comes on stock. Testing the bot i requested it to search for two items, one which was in stock and one which wasnt. The bot wasnt able to buy the in stock one since it is tryint to add both of them to my cart. Ifirquest him to search 2 in stock items it will buy them both. Is there a way to make the bot search for multiple items and if one of them comes in stock to buy it and stop trying to add the others to the cart? Thanks

Johny132 avatar Dec 04 '20 18:12 Johny132

The bot currently doesn't search for the items; rather, it invokes the AddToCart.aspx Newegg URL, using the configured item_number value as input to the ItemList parameter. From what I can tell, AddToCart.aspx will only add the items if they can all be found/are in stock. Otherwise, it will not add any of them. To do what you are asking is not impossible, the bot just needs to be updated change how it is adding items as well as do some tracking of what has and has not been successfully purchased.

Codolophier avatar Dec 10 '20 14:12 Codolophier