List Decathlon Switzerland cart items
TL;DR
Automatically list Decathlon Switzerland cart items on decathlon.ch. See what is in the Decathlon Switzerland cart of this browser, with prices and the total in Swiss francs.
About
Use it to check the cart before you buy, or before you remove a product. Each line has the product, size, seller, quantity, unit price and line price, plus the item count and the total without delivery. It works only in your own browser, through the Reduck extension. No account is needed.
Inputs
None
Output
count requiredlines requiredtotal requiredcurrency requiredFAQ
Remove Decathlon Switzerland product from cart
Remove one product from the Decathlon Switzerland (decathlon.ch) cart of this browser, whatever its quantity, as the cart page's delete link does. Pass the line's productId and reviewHash from List Decathlon Switzerland cart items: the removal is refused when the line changed since it was read (another quantity, seller or price) and when the product is not in the cart, so nothing else is ever removed. Returns the units removed and what is left in the cart: each line with its product id, offer id, name, seller, quantity, unit price and line price in Swiss francs, the count and the total. Works as a guest, with no account. Works in your own browser (the extension), not in a cloud browser.
Add Decathlon Switzerland product to cart
Add a Decathlon Switzerland (decathlon.ch) product to the cart of this browser from its product page link, with a quantity from 1 to 10, as the page's own add to cart button does, and return the cart afterwards: each line with its product id (the sku id of the exact size), offer id, name, seller, quantity, unit price and line price in Swiss francs, the count and the total, plus the reviewHash of the line added. The link picks the color and sku_id picks the size; a color with several sizes and no sku_id fails and lists the sizes. Works as a guest, with no account: lines already in the cart stay. Nothing is paid or ordered. A size that cannot be bought, a product offered only for store pickup and a link that is not a decathlon.ch product page fail with an error. Works in your own browser (the extension), not in a cloud browser.
Get Decathlon Switzerland product
Fetch one Decathlon Switzerland (decathlon.ch) product page from its link (as returned by Search Decathlon Switzerland products). Returns the title, brand, description, rating and review count, the color shown, the images, and the variants of that color: each size with its sku id (the id Add Decathlon Switzerland product to cart takes), offer id, price and struck-through list price in Swiss francs, the seller (Decathlon or a marketplace seller), the condition and whether it can be bought. Also lists the other colors of the product with their link. Each size has one offer, so there is no offers script. A link that is not a decathlon.ch product page fails with an error that says so. Works in your own browser (the extension), not in a cloud browser.
