| 开发者 | pluginskart |
|---|---|
| 更新时间 | 2026年11月2日 21:12 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
Width: and cm.pkart-product-attributes-display folder to /wp-content/plugins/.Yes. WooCommerce must be installed and active.
The plugin provides a block, so it needs a theme that supports block templates, such as Twenty Twenty-Four or Twenty Twenty-Five. It can also be used in any block that provides product context.
Anywhere a product is available as block context: the Single Product template, inside the Product Collection block's product template, and similar product blocks. Outside of a product context, the block outputs nothing.
Automatic blocks are created only for global attributes managed under Products → Attributes. Create an attribute there, and it will automatically appear in the block inserter, searchable by its name. You can also add custom attributes directly to individual products.
Insert any attribute block, then change its Attribute slug in the block settings to the name of your custom attribute, in lowercase with spaces replaced by hyphens. For example, a custom attribute named "Fabric Type" uses the slug fabric-type, and "Thickness" uses thickness.
Use the attribute's taxonomy name with the pa_ prefix, for example pa_color or pa_width. Blocks inserted from the inserter fill this in for you.
The block only outputs content when the current product has a value for the selected attribute. This keeps your layout clean when an attribute does not apply to a product.
Yes. The block renders a paragraph with the class wp-block-pkart-shop-attributes, plus the attribute slug as an extra class (for example pa_color). Inside it you'll find:
.wp-block-pkart-product-attributes-display__prefix.wp-block-pkart-product-attributes-display__value.wp-block-pkart-product-attributes-display__suffixNo. The block is rendered on the server, loads no front-end JavaScript, and does not add database tables or options.
Yes. The plugin declares compatibility with High-Performance Order Storage and the Cart and Checkout blocks. It does not read or write order data.
Yes. All strings use the pkart-product-attributes-display text domain.