ae012817cc
* Remove isExperimentalBuild checks. By removing the `isExperimentalBuild` conditional checks in the Classic Template block, we can ensure the features added in woocommerce/woocommerce-blocks#8324 will land in WooCommerce Core and are not limited to the feature plugin. See p1680000654295729-slack-C02UBB1EPEF for additional context. * Revert isExperimentalBuild removal on registration The conditional `isExperimentalBuild` conditional check that was wrapping some conditional registration of the classic template block seems to be unrelated to the template conversion/migration. This is something we can revisit and test separately but should not be included in this changeset. |
||
---|---|---|
.. | ||
assets | ||
test | ||
README.md | ||
archive-product.ts | ||
constants.ts | ||
editor.scss | ||
index.tsx | ||
product-search-results.ts | ||
single-product.ts | ||
style.scss | ||
types.ts | ||
utils.ts |
README.md
Classic Template Block
Table of Contents
The Classic Template block is a placeholder block for specific WooCommerce block templates which are rendered on the server-side when a block theme is active.
By assigning a template identifier to the attribute prop, the block will render that specific template on the front-end, and a placeholder for said template in the Site Editor.
It's worth noting that the placeholder in the Site Editor is merely an approximate representation of a template's front-end view.
Usage
This block does not have any customizable options available, so any style or customization updates will not be reflected on the placeholder.
Props
attributes
template
:single-product
|archive-product
|taxonomy-product_cat
|taxonomy-product_tag
|taxonomy-product_attribute
align
:wide
|full
<!-- wp:woocommerce/legacy-template {"template":"single-product"} /-->
We're hiring! Come work with us!
🐞 Found a mistake, or have a suggestion? Leave feedback about this document here.