List Sklum cart items
TL;DR
Automatically list Sklum cart items on sklum.com. List the items in the Sklum France cart of this browser, with prices and the subtotal.
About
Use it to check the cart before checkout. You get the number of units, the subtotal in euros before shipping, and each line with its name, variant, quantity, unit price and line price. Each line also has the values to pass to the script that removes it from the cart. It is the guest cart of the browser, so no account is needed.
Inputs
None
Output
count requireditems requiredcurrency optionalsubtotal optionalFAQ
Remove a product from the Sklum cart
Remove one line from the Sklum France (sklum.com/fr) cart of this browser, whatever its quantity, as the cart page does. Pass the line's item_id and review_hash from List Sklum cart items: the removal is refused when the line changed since it was read (another quantity or price), and an item that is not in the cart is refused too, so nothing else is ever removed. Returns the item removed, its name, the units removed, and the cart's count and subtotal in euros afterwards. Works as a guest, with no account.
Add a product to the Sklum cart
Add a Sklum France (sklum.com/fr) product to the cart of this browser, with a quantity from 1 to 10, as the product page's add to cart button does. Give the product id or link and, for a product with several variants (colours, finishes), the offer_id of one (from Get Sklum product); a link with ?id_c= names the variant itself. Returns the product id, offer id, name, variant, seller (Sklum), the units added and now in the cart, the line's item_id and review_hash for Remove a product from the Sklum cart, and the cart's count and subtotal in euros. Works as a guest, with no account: lines already in the cart stay. An unknown product, a variant the product does not have, a missing offer_id for a product with several variants, and an add the site refuses fail with an error, and nothing is added. Nothing is paid or ordered.
Get Sklum product
Get one product of the Sklum France store (sklum.com/fr) from its product id or product link: name, collection, category, description, the product's properties (materials, weight, assembly and more) and dimensions as the page lists them, image, what its variants differ in (colour, texture, finish), and every variant with its offer_id (for Add a product to the Sklum cart), name, price and list price in euros, whether it is in stock and the site's shipping text. selected_offer_id is the variant a link names (?id_c=). Sklum is the only seller, so there is no offers script. An id Sklum does not sell, or a link to a variant the product does not have, is refused with an error that says so.
