Add Dangdang product to cart
Automatically add Dangdang product to cart on dangdang.com. Add a product of the Dangdang Chinese store (dangdang.com) to the shopping cart of this browser, from its product id or product page link, with a quantity from 1 to 10, as the product page's add to cart button does. Returns the cart as the site holds it afterwards, in the shape List Dangdang cart items gives, plus the product id, offer id (always null: Dangdang has one seller for each product), name and units added. Works as a guest, with no account: lines already in the cart stay. A product the site does not know, a product that is sold out, and an add the site refuses fail with an error that says so. Nothing is paid or ordered. Use a managed browser in China (country CN).
Inputs
product requiredProduct id from Search Dangdang products (for example 29996911), or a product page link.
quantity optionalHow many units to add.
Default: 1Output
name requiredadded requiredUnits this run added.
count requiredUnits in the cart.
lines requiredtotal requiredItems total in yuan, delivery not included.
offerId requiredcurrency requiredproductId requiredFAQ
Get Dangdang product
Read one product of the Dangdang Chinese store (dangdang.com) from its product id or its product page link: name, subtitle, link, seller (Dangdang itself or a marketplace shop, with its shop id), selling price and list price in yuan, whether it is in stock, review count, categories, the key facts the page lists (for a book the author, publisher and book number), and images. Stock and price are what a new guest sees online with no delivery address chosen. A product id or link that the site does not know fails with an error that says so. Dangdang has one seller for each product, so there is no offers script. Use a managed browser in China (country CN): other places can get a slide verification.
Remove Dangdang product from cart
Remove a product from the shopping cart of this browser on the Dangdang Chinese store (dangdang.com), by its product id (as List Dangdang cart items returns it), whatever its quantity, as the cart page's delete link does: every line of it, or only the line of one line id. Returns removed and the cart as it is after the removal, in the shape List Dangdang cart items gives. A product that is not in the cart gives removed false and the cart unchanged, not an error. Works as a guest, with no account. Use a managed browser in China (country CN): other places can get a slide verification.
List Dangdang cart items
List the items in the shopping cart of this browser on the Dangdang Chinese store (dangdang.com): the item count, the items total in yuan (delivery not included), the currency, and each line with its line id, product id, offer id (always null: Dangdang has one seller for each product), name, seller, quantity, unit price and line price. Works as a guest, with no account: the cart lives in the browser, so a new browser has an empty cart. An empty cart returns an empty list. Use a managed browser in China (country CN): other places can get a slide verification.
