List Container Store cart items
Automatically list Container Store cart items on containerstore.com. List the items in the cart of this browser on The Container Store (containerstore.com, US): each line with its line id, product id, variant (SKU) id, name, quantity, unit price after the cart's offers and line price in USD, plus the unit count and the order subtotal. An empty cart gives an empty list. Works as a guest: the cart lives with the browser.
Inputs
None
Output
count requiredNumber of units in the cart.
lines requiredtotal requiredOrder subtotal in USD as the cart shows it: before offers, shipping and tax.
FAQ
Remove from Container Store cart
Remove a product of The Container Store (containerstore.com, US) from the cart of this browser, by product id or link, whatever its quantity: every line of it, or only the line of one variant when its SKU id is given. Returns the cart after the removal and removed true. A product that is not in the cart leaves the cart unchanged and gives removed false, not an error.
Add to Container Store cart
Add a product of The Container Store (containerstore.com, US) to the cart of this browser, by product id or link, optionally one of its variants (a color or size, by its SKU id from Get Container Store product), in a quantity of 1 to 20. Without a variant it adds the variant the product page selects. Returns the cart after the add. It does not check out.
Get Container Store product
Get one product of The Container Store (containerstore.com, US) by its id or link: name, brand, category, price and list price, description, images, its options (color, size and others) and every variant with its options, price in USD, dimensions and shipping status. An id that the site does not have gives an error that says so.
