List Gifi cart items
Automatically list Gifi cart items on gifi.fr. List the items in the Gifi.fr cart of this browser: the unit count, the item subtotal in euros (without delivery) and each line with its line id, product id, offer id, name, seller, quantity, unit price and line price. The cart is the guest cart of the browser, so no sign-in is needed. An empty cart returns no lines and a count of 0.
Inputs
None
Output
count requiredUnits in the cart.
lines requiredtotal requiredItem subtotal in euros, without delivery. 0 for an empty cart.
FAQ
Search Gifi products
Search Gifi.fr (home, decoration, toys) by free text and return one page of results of about 48 items: id, name, link, price in euros, availability label, category path, image and seller, plus the total number of results, the page number and whether another page follows. Stop paging when has_next_page is false. A search with no match returns an empty list. Pass an item's url to Get Gifi product.
Get Gifi product
Fetch one Gifi.fr product page from its product id (e.g. 577264) or its link (the url that Search Gifi products returns), both passed as url: id, name, price in euros, availability and condition as the site declares them, rating and review count, images, breadcrumb, whether the add button is enabled and the stock label shown. Gifi availability depends on the store chosen in the browser, so a product can read as unavailable until a store is selected. A page that does not exist fails with an error that says so; a link that is not a Gifi product page fails with an error.
Remove from Gifi cart
Remove a product from the Gifi.fr guest cart of this browser by its product id or link, whatever its quantity, and return removed and the cart after: the unit count, the item subtotal in euros and each line with its product id, name, seller, quantity, unit price and line price. A product that is not in the cart gives removed false and the cart unchanged, not an error.
