List LDLC cart items
Automatically list LDLC cart items on ldlc.com. List the items in the LDLC cart of this browser, as the site holds it: for each line its product id, offer id, name, quantity, unit price and line price in euros, plus the number of items and the cart total with taxes. 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 LDLC product from cart
Remove a product from the LDLC cart of this browser by its product id (PB00630480) or offer id, whatever its quantity, and return what is left in the cart: each line with its product id, offer id, name, 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 LDLC product to cart
Add an LDLC product to the shopping cart from its product page link or its product id, with an optional quantity from 1 to 10, and return the cart as the site holds it afterwards: each line with its product id, offer id, name, quantity, unit price and line price in euros, plus the item count and the 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 product that is out of stock or not sold online fails with an error; a link that is not an LDLC product page fails with an error.
Search LDLC products
Search LDLC.com by free-text query with LDLC's own sort order, one page at a time (about 48 products per page, promoted ones included). Returns the page and page counts, has_next_page and the items: product id (the input of Get LDLC product and Add LDLC product to cart), offer id, title, short description, link, price and struck-through list price in euros, review count, image, stock code, whether the offer comes from a marketplace seller and the badges LDLC shows on the card (promotion, best seller, new). Stop paging when has_next_page is false. A search that matches nothing returns an empty list.
