CartItemSchema
AbstractBlock class.
Description Description
Source Source
File: woocommerce/packages/woocommerce-blocks/src/RestApi/StoreApi/Schemas/CartItemSchema.php
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
Methods Methods
- format_variation_data — Format variation data, for example convert slugs such as attribute_pa_size to Size.
- get_attribute_taxonomy_name — Get product attribute taxonomy name.
- get_item_response — Convert a WooCommerce cart item to an object suitable for the response.
- get_properties — Cart schema properties.
- product_id_exists — Check given ID exists,