AbstractProductGrid
AbstractProductGrid class.
Description Description
Source Source
File: packages/woocommerce-blocks/src/BlockTypes/AbstractProductGrid.php
Methods Methods
- enqueue_data — Extra data passed through from server to client for block.
- get_add_to_cart — Get the "add to cart" button.
- get_attributes — Get a set of attributes shared across most of the grid blocks.
- get_block_type_attributes — Get a set of attributes shared across most of the grid blocks.
- get_button_html — Get the button.
- get_container_classes — Get the list of classes to apply to this block.
- get_image_html — Get the product image.
- get_price_html — Get the price.
- get_products — Run the query and return an array of product IDs
- get_products_limit — Works out the item limit based on rows and columns, or returns default.
- get_rating_html — Render the rating icons.
- get_sale_badge_html — Get the sale badge.
- get_schema_content_visibility — Get the schema for the contentVisibility attribute
- get_schema_orderby — Get the schema for the orderby attribute.
- get_title_html — Get the product title.
- parse_attributes — Get the block's attributes.
- parse_query_args — Parse query args.
- render — Include and render the dynamic block.
- render_product — Render a single products.
- set_block_query_args — Set args specific to this block
- set_categories_query_args — Set categories query args.
- set_ordering_query_args — Parse query args.
- set_visibility_query_args — Set visibility query args.