List the Fnac cart items
Automatically list the Fnac cart items on fnac.com. List the items in the Fnac.com cart of this browser, as the site holds it: for each line its product id, offer id, name, seller (Fnac itself or the marketplace 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 requiredNumber of items in the cart, quantities summed.
lines requiredtotal requiredCart total in euros as the site states it.
FAQ
Remove a product from the Fnac cart
Remove a product from the Fnac.com 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, offer 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. When the same product is in the cart from several sellers, pass the offer id to pick the line.
Add a Fnac product to the cart
Add a Fnac.com product to the shopping cart from its id (a<number> or mp<number>, as Search Fnac products returns) or its product page link, with a quantity from 1 to 10, and return the cart as the site holds it afterwards: each line with its product id, offer 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. The product is added from the offer Fnac shows first; to buy from another seller, pass the offer id from Get Fnac product's offers, or a link that carries it. The seller of each line is named in the cart. Nothing is paid or ordered. A product that has no add button (unavailable) fails with an error, and so does a link that is not a Fnac product page.
Get Fnac product offers
List every offer for one fnac.com product, 10 sellers a page: price, condition, seller name and id, ships from, shipping price and delivery date. Fnac's own offer comes first on page 1.
