| 开发者 | gerald-scott |
|---|---|
| 更新时间 | 2026年10月1日 00:32 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
optiongrid-variation-matrix/public/templates/ into a
wc-variation-matrix/ folder in your child theme, and it will be used instead of
the plugin's own template. For example:
yourtheme/wc-variation-matrix/wcvm-variation-matrix-grid.php
Developer hooks
Actions:
wcvm_before_render_matrix — fires before the matrix markup is output.wcvm_after_render_matrix — fires after the matrix markup is output.wcvm_before_bulk_actions — fires inside every layout, between the variations and the add-to-cart button.wcvm_is_enabled_for_product — override whether the matrix shows for a product.wcvm_product_settings — modify the resolved display settings.wcvm_processed_variation — modify the data prepared for a single variation.wcvm_locate_template — change which template file is loaded.wcvm_matrix_output — filter the final rendered markup.wcvm_labels — change the resolved heading and intro text.wcvm_style_mode — force the stylesheet mode at runtime.wcvm_inline_css — change the inline CSS printed after the stylesheet.optiongrid-variation-matrix folder to /wp-content/plugins/, or install the ZIP file through Plugins > Add New > Upload Plugin.No. The matrix replaces the variation selection form, so it only applies to variable products that have at least one published variation. The Variation Matrix tab is hidden for other product types.
The matrix layout draws one attribute across the top and another down the side, so it needs a product with at least two variation attributes. If the product has only one, use the grid layout instead. When this happens the standard WooCommerce form is shown, and a message explaining why is displayed to logged in users who can edit products.
Yes, without writing CSS. Go to WooCommerce > Variation Matrix > Styling and set the accent, text, border, header and cell colours, the base font size and the corner radius. If you would rather your theme handled the appearance, set Stylesheet to Minimal, which loads only the structural rules the layouts need and leaves colours, borders and fonts to your theme, or to Theme styling, which loads no plugin CSS at all. For your own rules, use your theme's stylesheet or WordPress's Additional CSS panel. Each product can also have a custom CSS class set on its Variation Matrix tab, and every layout is a template file you can copy into your child theme and edit.
Yes. WooCommerce > Variation Matrix > Heading & Text sets the heading and the intro line for the whole site, or hides both. Any single product can override either one from its own Variation Matrix tab. Leave a field empty and it falls back to the site wide value, then to the default wording for that layout.
No, not unless you ask for it. Go to WooCommerce > Variation Matrix and set Delete Data on Uninstall to Yes if you want everything removed when the plugin is deleted. The default is to keep your data.
Yes. Quantity fields are limited by each variation's available stock and its minimum and maximum purchase quantity. Variations that are out of stock cannot be ordered, and backorders are allowed when WooCommerce is configured to allow them.
Both are part of OptionGrid Variation Matrix Pro, available from https://plugins.wpintegrate.com/product/wc-variation-matrix-pro-bulk-variations-table-grid-matrix-for-woocommerce/. The free and Pro versions share the same settings, so switching is seamless.