List Bed Bath & Beyond cart items
Automatically list Bed Bath & Beyond cart items on bedbathandbeyond.com. List what is in the Bed Bath & Beyond cart of this browser: each line with its product id, option id, name, quantity, unit price and line price, plus the number of items and the cart total in US dollars. An empty cart gives count 0 and no lines.
Inputs
None
Output
count requiredThe number of items in the cart, all quantities added.
lines requiredtotal requiredThe cart total in US dollars.
FAQ
Remove from Bed Bath & Beyond cart
Remove a Bed Bath & Beyond product from the cart of this browser, from its id or page link: every option of it, whatever the quantity. Gives the cart after the removal and removed: true, or removed: false when the product was not in the cart.
Add to Bed Bath & Beyond cart
Add a Bed Bath & Beyond product to the cart of this browser, from its id or page link, with a quantity from 1 to 10. A product sold in several options (color, size) needs optionId, from get-product. Gives the cart after the add. An unknown product, an unknown option, a missing option, a product out of stock, or a quantity above the site's limit gives an error that says so, and nothing is added.
Get a Bed Bath & Beyond product
Get one Bed Bath & Beyond product from its id or its page link: name, link, price, comparison price, currency, availability, rating, review count, images, brand, and its options (color, size and so on) with their ids for add_to_cart. An id the site does not know, or a link that is not a product page, gives an error that says so.
