List Bershka cart items
Automatically list Bershka cart items on bershka.com. List the items in the Bershka France (bershka.com/fr) cart of this browser: each line with its line id, product id, offerId (the size), name, colour, size and length, quantity, unit price and line price in euros, plus the number of units and the total of the cart. An empty cart gives an empty list. The cart works without sign-in and stays with the browser.
Inputs
None
Output
count requiredNumber of units in the cart.
lines requiredtotal requiredTotal of the cart, in euros.
currency requiredCurrency of the amounts, as an ISO code (euro).
FAQ
Add Bershka product to cart
Add one size of a Bershka France (bershka.com/fr) product to the cart of this browser, with a quantity from 1 to 10. Give the product id or link and the offerId of the size and length from Get Bershka product. Returns the cart after the add (each line, the number of units and the total in euros) with the product id, offerId, name and number of units added. A size that is not in stock, or an offerId that is not on the product, gives an error with the sizes of the product. Works without sign-in: the cart stays with the browser, and lines already in it stay. Bershka can refuse the add from a browser outside France: then the run fails and says so. Nothing is paid or ordered.
Get Bershka product
Get one product of the Bershka France store (bershka.com/fr) from its product id or its link: name, description, reference, and every colour with its price and old price in euros, link, and every size once for each length it comes in (short, regular, long), with its offerId (the id that Add Bershka product to cart takes), price and stock state. A product id that Bershka does not know gives an error that tells you to search again.
Remove Bershka product from cart
Remove one size of a product from the Bershka France (bershka.com/fr) cart of this browser by its offerId, whatever its quantity, and return the cart after the removal (each line, the number of units and the total in euros) with removed true. Give the line id from List Bershka cart items to remove only one line when the size is on several lines. A size that is not in the cart gives removed false and the cart without a change, not an error. Works without sign-in.
