List BUT.fr cart items
Automatically list BUT.fr cart items on but.fr. List the items in the BUT.fr cart of this browser, as the site holds it: for each line its product id, name, seller, quantity, unit price and line price in euros, plus the number of items and the cart total. The cart is the guest cart of the browser, so no sign-in is needed. An empty cart returns an empty list and a zero count.
Inputs
None
Output
count requiredUnits in the cart.
lines requiredtotal requiredCart total in euros, taxes included.
FAQ
Remove BUT.fr product from cart
Remove a product from the BUT.fr cart of this browser by its product id, whatever its quantity, and return what is left in the cart: each line with its product id, name, seller, quantity, unit price and line price in euros, plus the item count and total. A product that is not in the cart is reported with removed false and the cart unchanged, not as a failure.
Add BUT.fr product to cart
Add a BUT.fr product to the shopping cart from its product page link or product id, with an optional quantity, and return the cart as the site holds it afterwards: each line with its product id, name, seller, quantity, unit price and line price in euros, plus the item count and total. Works as a guest, with no account: the cart lives in the browser, so lines already in it stay and are listed too. Nothing is paid or ordered. A link that is not a BUT product page, or an unknown product, fails with an error; a product that cannot be bought online fails with an error.
Get BUT.fr product
Fetch one BUT.fr product page by its product id or link (the id that Search BUT products returns, for example 4894223246194). Returns title, brand, EAN, price and struck-through list price in euros with the discount, rating and review count, the seller, a short description, the images, the breadcrumb, and the availability (whether it can be bought online, the stock and the fastest home delivery with its cost). An unknown product fails with an error that says so.
