List the items in the Micro Center cart
Automatically list the items in the Micro Center cart on microcenter.com. List the items in the Micro Center (microcenter.com) cart of this browser, as the site holds it: for each line its line id, product id, offer id (always null), name, seller (always Micro Center), quantity, unit price and line price in US dollars, plus the number of items and the cart total Micro Center shows (before tax, with the shipping price of shippable items). The cart is the guest cart of the browser, so no sign-in is needed. Saved list items are not included. An empty cart returns an empty list and a zero count.
Inputs
None
Output
count requiredNumber of units in the cart, all lines together.
lines requiredtotal requiredCart total in US dollars as Micro Center shows it, before tax, with the shipping price of shippable items.
FAQ
Remove a product from the Micro Center cart
Remove a line from the Micro Center (microcenter.com) cart of this browser, by its line id or by the product id (from List the items in the Micro Center cart), and return the whole cart afterwards with removed true. A product that is not in the cart is not an error: nothing changes and removed is false. Works as a guest, with no account. Nothing is paid or ordered.
Add a product to the Micro Center cart
Add a Micro Center (microcenter.com) product to the cart of this browser, by its link or product id, with a quantity from 1 to 10, and return the whole cart afterwards: each line with its line id, product id, offer id (always null), name, seller (always Micro Center), quantity, unit price and line price in US dollars, plus the item count and the cart total Micro Center shows (before tax, with the shipping price of shippable items). Works as a guest, with no account: lines already in the cart stay and are listed too. The product is bought from the web store 029 (shippable items) unless store_id names a store for pickup. Nothing is paid or ordered. A product the store does not sell online, an unknown product id, a link that is not a Micro Center product page and a quantity above Micro Center's limit fail with an error that says so.
Get a Micro Center product
Get one Micro Center (microcenter.com) product by its link or product id, at one store: name, brand, SKU, manufacturer part number, price, currency, availability and the stock or shipping text the store shows, rating and review count when the page gives them, category path and images, plus the store the prices are for. Prices and stock depend on the store: pass store_id (three digits from the site's store picker, for example 081 for Fairfax, VA) or omit it for the web store 029 (shippable items) that Micro Center sets for a new guest. An unknown product id or a link that Micro Center answers with another page fails with an error that says so.
