9ba4f34d31
* Add transforms for checkout block * Block to shortcode switcher in notice * cart transforms * Fix target block for switching * Remove switcher UI for classic cart/checkout * Set isPreview when generating block preview in switcher * Onboarding task * Action on click * Focus on block after replacement * Update notice styling and wording * Undo functionality * Look for woocommerce/classic-shortcode when determining if task list item should display * Enable focus on the cart/checkout block when visiting from the task list * Classic Cart/Checkout Updated Title * Add missing translations * Refactor modal content to avoid sprintf * Improve pickBlockClientId * Tracks events for switching to classic shortcode block * TaskList support for non-block themes * Updated placeholder to work on non-white page backgrounds * Find blocks using findBlock utility * Add TabbableContainer for buttons * Add align to wrapper * Update modal content * Update modal usage * Removed undo link when converting from classic shortcode * Check if block was selected * Revert "Removed undo link when converting from classic shortcode" This reverts commit 2babbab4c1e69861a0371ff745e85d80ff6bbab1. * update snackbar text |
||
---|---|---|
.. | ||
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.