Add a product to the Hot Topic cart
Automatically add a product to the Hot Topic cart on hottopic.com. 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.
Inputs
product requiredProduct id (the number at the end of a product link, for example 36930976) or the product link.
offerId optionalId of the size or color to add, from the variants of Get Hot Topic product. Needed when the product comes in sizes or colors.
quantity optionalHow many to add.
Default: 1Output
name requiredadded requiredTrue when the bag now holds a line of this offer.
count requiredNumber of units in the bag.
lines requiredtotal requiredEstimated subtotal in US dollars, before shipping and tax.
offerId requiredId of the size or color added.
productId requiredFAQ
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.
List the items in the Hot Topic cart
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.
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.
