This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Create the Add to Cart block #8188
Labels
focus: FSE
Work related to prepare WooCommerce for FSE.
type: new block
Applied to work that introduces a new block (typically used on an epic issue).
Create a block version of the add-to-cart form available on single product templates.
add-to-cart
assets/js/blocks/product-add-to-cart/
src/BlockTypes/AddToCart.php
woocommerce_template_single_add_to_cart()
The add-to-cart button template can vary depending on the product type:
Simple Product
Details:
woocommerce/templates/single-product/add-to-cart/simple.php
woocommerce_simple_add_to_cart()
Screenshot:
Grouped Product
Details:
woocommerce/templates/single-product/add-to-cart/grouped.php
woocommerce_grouped_add_to_cart()
Screenshot:
Variable Product
Details:
woocommerce/templates/single-product/add-to-cart/variable.php
woocommerce_variable_add_to_cart()
Screenshots:
External Product
Details:
woocommerce/templates/single-product/add-to-cart/external.php
woocommerce_external_add_to_cart()
Screenshot:
The text was updated successfully, but these errors were encountered: