List the items in the Ochsner Sport cart
TL;DR
Automatically list the items in the Ochsner Sport cart on ochsnersport.ch. List the items in your Ochsner Sport cart, with size, colour, availability and prices in Swiss francs.
About
Use it to check the cart before you buy, or before you remove a product. You get each line with its product, size, colour, quantity, prices, availability and link, plus the number of units and the total. Each line also has the value that the Remove a product from the Ochsner Sport cart script asks for. Nothing is paid or ordered, and no account is needed.
Inputs
None
Output
count requiredlines requiredsubtotal requiredcurrency optionalFAQ
Add a product to the Ochsner Sport cart
Add one size of an Ochsner Sport (ochsnersport.ch, Switzerland) product to the cart of this browser, as a guest. Pass the product id or link and the offer_id of the size, both from Get Ochsner Sport product, and a quantity from 1 to 10. Adding a size already in the cart raises its quantity; when Ochsner Sport has fewer units in stock than asked, it adds only those it has, and quantity_added says how many. Returns the line (line id, size, quantity, unit and line price in Swiss francs) and the cart afterwards, with each line's review_hash for Remove a product from the Ochsner Sport cart. An unknown product or an offer_id of another product fails with a message that says so and adds nothing. Nothing is paid or ordered.
Remove a product from the Ochsner Sport cart
Remove one line from the Ochsner Sport (ochsnersport.ch, Switzerland) cart of this browser, whatever its quantity, as the cart page does. Pass the line's line_id and review_hash from List the items in the Ochsner Sport cart: the removal is refused when the line changed since it was read (another quantity or price), and a line that is not in the cart is refused too, so nothing else is ever removed. Returns the line removed, its name and size, the units removed, and the cart's count and total in Swiss francs afterwards. Works as a guest, with no account.
Get Ochsner Sport product
Get one product of the Ochsner Sport Swiss sports store (ochsnersport.ch) from its product id or product link: name, brand, color and the manufacturer's color, product type, price range and price before a reduction in Swiss francs, rating, whether it is in stock or new, article number, gender, sports, materials, features, care advice, season, images, and every size with its id, label, barcode number, price, units in stock and whether it can be ordered. Ochsner Sport is the only seller, so there is no offers script. An id or link the store does not know fails with an error that says so.
