
Grid layout on a variable product page.
OptionGrid Variation Matrix for WooCommerce replaces the standard WooCommerce variation
dropdowns with a layout that shows every variation of a product at the same time. Customers enter a
quantity next to each variation they want and add them all to the cart in one click,
which is far quicker than selecting attributes one combination at a time.
This is particularly useful for wholesale stores, apparel (size and colour grids),
print and packaging suppliers, and any shop where a customer typically buys several
variations of the same product in a single order.
OptionGrid Variation Matrix Pro adds a table layout with a
column for each attribute, and a live order totals bar showing the total items,
weight and price of the quantities entered, right above the add-to-cart button. Your
product settings and options carry over unchanged.
Copy any file from 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
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.Filters:
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.