packages/woocommerce-blocks/src/StoreApi/Schemas/ProductSchema.php:
ProductSchema::get_item_response()
|
Convert a WooCommerce product into an object suitable for the response.
|
packages/woocommerce-blocks/src/StoreApi/Schemas/CartItemSchema.php:
CartItemSchema::get_item_response()
|
Convert a WooCommerce cart item to an object suitable for the response.
|
includes/class-wc-template-loader.php:
WC_Template_Loader::unsupported_theme_tax_archive_init()
|
Enhance the unsupported theme experience on Product Category and Attribute pages by rendering those pages using the single template and shortcode-based content. To do this we make a dummy post and set a shortcode as the post content. This approach is adapted from bbPress.
|
includes/wc-template-functions.php:
woocommerce_taxonomy_archive_description()
|
Show an archive description on taxonomy archives.
|
includes/wc-template-functions.php:
woocommerce_product_archive_description()
|
Show a shop page description on product archives.
|
includes/wc-template-functions.php:
wc_terms_and_conditions_page_content()
|
Output t&c page’s content (if set). The page can be set from checkout settings.
|
includes/class-wc-product-variable.php:
WC_Product_Variable::get_available_variation()
|
Returns an array of data for a variation. Used in the add to cart form.
|
packages/woocommerce-blocks/src/BlockTypes/FeaturedProduct.php:
FeaturedProduct::render()
|
Render the Featured Product block.
|
packages/woocommerce-blocks/src/BlockTypes/FeaturedCategory.php:
FeaturedCategory::render()
|
Render the Featured Category block.
|
includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:
WC_REST_Product_Variations_Controller::prepare_object_for_response()
|
Prepare a single variation output for response.
|
includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:
WC_REST_Product_Variations_V2_Controller::prepare_object_for_response()
|
Prepare a single variation output for response.
|