Cart
Cart API.
Description Description
Source Source
File: woocommerce/packages/woocommerce-blocks/src/RestApi/Controllers/Cart.php
Methods Methods
- add_item — Adds an item to the cart.
- add_to_cart — Based on the core cart class but returns errors rather than rendering notices directly.
- get_item — Get a single cart items.
- get_item_schema — Cart item schema.
- get_items — Get a collection of cart items.
- get_object_for_response — Convert a woo cart item to JSON schema.
- register_routes — Register routes.