List Alibaba.com cart items
Automatically list Alibaba.com cart items on alibaba.com. List the items in this browser's Alibaba.com cart: for each line its line id, product id, variant id, title, link, image, supplier (name, company id, country), variant values, quantity, minimum order quantity, unit price, line total, currency and whether it is still available. Also returns the cart's line count, item count, item subtotal, shipping fee, shipping discount, total before tax, display currency and ship-to country. The cart works without sign-in: a browser that is not signed in to Alibaba.com has a cart of its own. An empty cart returns an empty list.
Inputs
None
Output
count requiredNumber of items in the cart, all lines' quantities added.
lines requiredOne line per product variant. Empty for an empty cart.
total requiredItem subtotal in the display currency that Alibaba.com sets for the browser, shipping not included. 0 for an empty cart.
FAQ
Add to Alibaba.com cart
Add a product to this browser's Alibaba.com cart, by product id and variant id, with a quantity of at least the product's minimum order quantity (the minimum order quantity when none is given), as the product page's add-to-cart button does, with the shipping method the page picks. Returns the product's cart line after the add (line id, variant, quantity, unit price, line total) and the cart totals. A product with one variant needs no variant id; for a product with more, Get Alibaba.com product lists the variant ids. Adding a variant that is already in the cart adds to its quantity. A product that the supplier sells only through a quote request, an unknown variant or a quantity under the minimum fails with an error that says so. The cart works without sign-in. List Alibaba.com cart items reads the cart; Remove from Alibaba.com cart takes the product out.
Remove from Alibaba.com cart
Remove a product from this browser's Alibaba.com cart by product id, whatever its quantity, as the cart page's remove button does: all its variants, or only one when a variant id is given. Returns removed and the cart as it is after the removal, in the shape List Alibaba.com cart items gives. A product or variant that is not in the cart is reported with removed false and the cart unchanged, not as a failure. The cart works without sign-in.
Get Alibaba.com product
Read one Alibaba.com product page by product id or product link: title, price tiers (quantity range and unit price), price range, display currency, minimum order quantity and unit, whether it can go in the cart, the variant attributes and every variant with its variant id, price and stock, the supplier (name, company id, country, years on Alibaba.com, verified mark, response time, on-time delivery rate, rating, business type, store link), the shipping options to the browser's ship-to country (method, fee, delivery time), images, key attributes, category path, rating, review count and sold text. Prices are in the display currency that Alibaba.com sets for the browser. A product that does not exist or is no longer on sale fails with an error that says so. Products that only take a quote request have no shipping options and can_add_to_cart false.
