1dee94362f
* Get default attributes on front end * Remove console log * Show notice about 0 registered fields in editor * Do not show block in editor if no fields are registered * Wrapper block * Styling/spacing * Update webpack config * Register heading pattern * Wrapper block type definition * get_fields_for_location return fields in array format * Use wrapper in default content * Separate fields from the hook block * Hide when no custom fields exist * Address and contact fields * Shared form fields in settings * remove info block from wrapper * Revert render_content to original * rename block * Add changefile(s) from automation for the following project(s): woocommerce-blocks, woocommerce * Update styling * Create shared get_order_additional_fields_with_values to format values * Update block names and descriptions * Show address placeholders * Add changefile(s) from automation for the following project(s): woocommerce-blocks, woocommerce * Unused import --------- Co-authored-by: Thomas Roberts <thomas.roberts@automattic.com> Co-authored-by: github-actions <github-actions@github.com> |
||
---|---|---|
.. | ||
assets | ||
test | ||
README.md | ||
archive-product.ts | ||
constants.ts | ||
editor.scss | ||
index.tsx | ||
order-confirmation.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.