woocommerce/plugins/woocommerce-blocks/assets/js/blocks/classic-template
Lucio Giannotta a8789a09f0 Remove Classic Template from Style Book. (https://github.com/woocommerce/woocommerce-blocks/pull/8371)
The Classic Template is not style-able, also, removing the
example doesn't make us lose much in terms of UX.
2023-02-03 18:26:41 +01:00
..
assets Rename Legacy Template block to Classic Template block (https://github.com/woocommerce/woocommerce-blocks/pull/6021) 2022-03-22 23:34:43 +01:00
test Remove duplicated key from the object containing TEMPLATES in a test file (https://github.com/woocommerce/woocommerce-blocks/pull/8260) 2023-01-24 17:16:05 +01:00
README.md Create the `Products by Attribute` template (https://github.com/woocommerce/woocommerce-blocks/pull/7660) 2022-11-16 14:37:41 +01:00
constants.ts Create the `Products by Attribute` template (https://github.com/woocommerce/woocommerce-blocks/pull/7660) 2022-11-16 14:37:41 +01:00
editor.scss Add the button to migrate to the blockified version of the Product Grid Block woocommerce/woocommerce-blocks#6483 (https://github.com/woocommerce/woocommerce-blocks/pull/6485) 2022-06-06 16:49:19 +02:00
index.tsx Remove Classic Template from Style Book. (https://github.com/woocommerce/woocommerce-blocks/pull/8371) 2023-02-03 18:26:41 +01:00
style.scss Classic Template: set the default alignment to wide (https://github.com/woocommerce/woocommerce-blocks/pull/6356) 2022-05-04 18:02:42 +07:00
types.ts Fix corrupt Classic Template placeholders for specific products. (https://github.com/woocommerce/woocommerce-blocks/pull/7033) 2022-09-06 10:52:33 +01:00
utils.ts Fix ESLint errors (https://github.com/woocommerce/woocommerce-blocks/pull/7556) 2022-11-02 17:46:14 +01:00

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"} /-->

Classic Template Block Single Product


We're hiring! Come work with us!

🐞 Found a mistake, or have a suggestion? Leave feedback about this document here.