List emag.ro cart items
Automatically list emag.ro cart items on emag.ro. List the items in the emag.ro cart of this browser, as the site holds it: for each line its product id, offer id, name, seller, quantity, unit price and line price in lei (RON), plus the number of items and the products total. 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 requiredProducts total in lei, taxes included, delivery not included.
FAQ
Remove product from emag.ro cart
Remove a product from the emag.ro cart of this browser by its product id, whatever its quantity, and return what is left in the cart: each line with its product id, offer id, name, seller, quantity, unit price and line price in lei (RON), plus the item count and products total. A product that is not in the cart is reported with removed false and the cart unchanged, not as a failure. When the same product is in the cart from several sellers, pass the offer id to pick the line.
Add product to emag.ro cart
Add an emag.ro product to the shopping cart from its product page link or product code, with an optional quantity, and return the cart as the site holds it afterwards: each line with its product id, offer id, name, seller, quantity, unit price and line price in lei (RON), plus the item count and products 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 page that does not offer the add button (out of stock, no longer listed) fails with an error; a link that is not an emag.ro product page fails with an error.
Get emag.ro product
Fetch one emag.ro product page by its product code or link (as Search emag products returns). Returns title, brand, barcode or manufacturer number, category path, price in lei (RON) and the recommended retail price when shown, stock status and whether it can be ordered, the seller of the offer shown with its rating, the product rating and review count, how many offers exist, the main image, the description and the technical attributes. An unknown product fails with an error that says so.
