List the items in the Woodbrass cart
TL;DR
Automatically list the items in the Woodbrass cart on woodbrass.com. List the Woodbrass cart of this browser, with each product, its variant, quantity and price in euros.
About
Use it to check the cart before you buy, or to get the line data that the remove script needs. You also get the number of units and the total. An empty cart gives a count of 0. Nothing is paid or ordered. No account is needed.
Inputs
None
Output
count requiredlines requiredsubtotal requiredcurrency optionalFAQ
Get Woodbrass product
Get one Woodbrass (woodbrass.com, France) product from its handle (as Search Woodbrass products returns it) or its woodbrass.com/products link: product id, title, brand, type, description, price range and struck-through price in euros, availability, images, options, and every variant with its offer_id (for Add a product to the Woodbrass cart), name, SKU, barcode, price, struck-through price and availability. An unknown handle fails with an error that says so.
Search Woodbrass products
Search Woodbrass (woodbrass.com, France, musical instruments) products by keywords, 24 a page, in the site's own order: for each product its handle (pass it to Get Woodbrass product), product id, variant id, title, brand, type, link, price and struck-through price in euros, stock quantity, rating, review count and image, plus the total number of results and whether another page follows. A search with no match, or a page after the last, gives an empty list.
Remove a product from the Woodbrass cart
Remove one line from the Woodbrass (woodbrass.com, France) cart of this browser, whatever its quantity, as the cart page's remove link does. Pass the line's line_id and review_hash from List the items in the Woodbrass cart (the line_id can also be just the variant id, the part before ':'): the removal is refused when the line changed since it was read (another quantity or price), and a line that is not in the cart is refused too, so nothing else is ever removed. Returns the line removed, its name, the units removed, and the cart's count and total in euros afterwards. Works as a guest, with no account.
