Cart
Cart class.
Description Description
Source Source
File: packages/woocommerce-blocks/src/BlockTypes/Cart.php
Methods Methods
- deep_sort_with_accents — Removes accents from an array of values, sorts by the values, then returns the original array values sorted.
- enqueue_assets — Enqueue frontend assets for this block, just in time for rendering.
- enqueue_data — Extra data passed through from server to client for block.
- get_block_type_editor_script — Get the editor script handle for this block type.
- get_block_type_script — Get the frontend script handle for this block type.
- get_skeleton — Render skeleton markup for the cart block.
- hydrate_from_api — Hydrate the cart block with data from the API.
- render — Append frontend scripts when rendering the Cart block.