Dev Resources

  • Home
  • Reference
  • BuddyX Theme
  • Functions
  • Hooks
  • Classes
Filter by type:
Search
Browse: Home / Reference / packages/woocommerce-blocks/src/StoreApi/Schemas/CartItemSchema.php

CartItemSchema::format_item_data_element()

Method: Remove HTML tags from cart item data and set the `hidden` property to `__experimental_woocommerce_blocks_hidden`.

Source: packages/woocommerce-blocks/src/StoreApi/Schemas/CartItemSchema.php:438

Used by 0 functions | Uses 0 functions

CartItemSchema::get_item_data()

Method: Format cart item data removing any HTML tag.

Source: packages/woocommerce-blocks/src/StoreApi/Schemas/CartItemSchema.php:426

Used by 1 function | Uses 0 functions

CartItemSchema

Class: CartItemSchema class.

Source: packages/woocommerce-blocks/src/StoreApi/Schemas/CartItemSchema.php:13

Used by 0 functions | Uses 0 functions

CartItemSchema::get_properties()

Method: Cart schema properties.

Source: packages/woocommerce-blocks/src/StoreApi/Schemas/CartItemSchema.php:33

Used by 0 functions | Uses 0 functions

CartItemSchema::get_item_response()

Method: Convert a WooCommerce cart item to an object suitable for the response.

Source: packages/woocommerce-blocks/src/StoreApi/Schemas/CartItemSchema.php:308

Used by 0 functions | Uses 6 functions

CartItemSchema::prepare_product_price_response()

Method: Get an array of pricing data.

Source: packages/woocommerce-blocks/src/StoreApi/Schemas/CartItemSchema.php:349

Used by 1 function | Uses 2 functions

CartItemSchema::get_remaining_stock()

Method: Returns the remaining stock for a product if it has stock.

Source: packages/woocommerce-blocks/src/StoreApi/Schemas/CartItemSchema.php:373

Used by 0 functions | Uses 2 functions

CartItemSchema::format_variation_data()

Method: Format variation data, for example convert slugs such as attribute_pa_size to Size.

Source: packages/woocommerce-blocks/src/StoreApi/Schemas/CartItemSchema.php:392

Used by 1 function | Uses 3 functions
Proudly powered by WordPress