List the items in the Hot Topic cart
Automatically list the items in the Hot Topic cart on hottopic.com. List the items in the Hot Topic (hottopic.com, US) shopping bag of this browser, as the site holds it: for each line its line id, product id, offer id (the size or color), name, seller (always Hot Topic), quantity, unit price and line price in US dollars after the promotions the bag applies, plus the number of units and the estimated subtotal, before shipping and tax. The bag is the guest bag of the browser, so no sign-in is needed. An empty bag returns an empty list, a zero count and a zero total.
Inputs
None
Output
count requiredNumber of units in the bag.
lines requiredtotal requiredEstimated subtotal in US dollars, before shipping and tax.
FAQ
Remove a product from the Hot Topic cart
Remove lines from the Hot Topic (hottopic.com, US) shopping bag of this browser and return the bag as the site holds it afterwards. Give lineId to remove one line, or offerId to remove every line of that size or color, whatever its quantity. Both come from List the items in the Hot Topic cart. Returns removed (true when lines were removed, false when no line matched, and then nothing is changed), the number of units, the estimated subtotal before shipping and tax, and each line left with its line id, product id, offer id, name, seller, quantity, unit price and line price in US dollars. Works as a guest, with no account.
Add a product to the Hot Topic cart
Add a Hot Topic (hottopic.com, US) product to the shopping bag of this browser, for shipping, and return the bag as the site holds it afterwards. Give the product id or link and, for a product that comes in sizes or colors, the offerId of one of them (both from Get Hot Topic product), with a quantity from 1 to 5. Returns the product id, offer id, name, whether the line is now in the bag, and the bag: the number of units, the estimated subtotal before shipping and tax, and each line with its line id, product id, offer id, name, seller, quantity, unit price and line price in US dollars. Works as a guest, with no account: lines already in the bag stay and are listed too. Nothing is paid or ordered. An unknown product, an offer of another product, a missing offerId, an offer that cannot be shipped now, or a quantity above the limit of the product fails with a message that says so, and adds nothing.
Get Hot Topic product
Get one Hot Topic (hottopic.com, US) product from its id or its product page link, also the id or link of one of its sizes: product id, link, name, brand, license (the franchise the page names), rating out of 5, price shown and price before the discount in US dollars, whether the price is a starting price, description, category path and images, and every offer (one size or color, or the product itself when it has none) with its offerId, color, size, price in the product data and availability as the site states it (for example InStock, OnlineOnly, PreOrder, OutOfStock). For a product with sizes, the price of an offer is the price before the promotions the cart applies. Pass offerId and the product id to Add a product to the Hot Topic cart. An id or link that Hot Topic does not know fails with a message that says so.
