| 开发者 | devikas301 |
|---|---|
| 更新时间 | 2026年10月14日 00:00 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[rovartable] and a "Variations Table" block.rwvt_ajax_variation_threshold filter) fall back to a single AJAX lookup, mirroring WooCommerce's own behaviour. CSS and JavaScript load only on pages that show a table.
rockon-woo-variations-table folder to /wp-content/plugins/, or install it through Plugins → Add New.[rovartable] shortcode to any post or page, or insert the "Variations Table" block.Yes. Simple products are shown as ordinary rows with a working add to basket button. Where a column does not apply to a product, the cell shows a dash so the table stays aligned.
The header is the union of every attribute in the table. A product that does not use one of them shows a dash in that column.
Yes. Append WooCommerce's usual attribute parameters, for example ?attribute_pa_colour=blue, and matching dropdowns are preselected on load.
The table renders in full, and each row shows a link to the product page instead of the basket button. Switching to cards needs JavaScript, so without it a table too wide for its space scrolls sideways instead.
Many themes keep page content in a narrow column, often around 600–700px, and a table with several option columns needs more room than that. Rather than hide the price and basket columns behind a sideways scroll, the plugin switches to cards. To show it as a table, give it more room: choose "Wide width" on the block's alignment toolbar, or add class="alignwide" to the shortcode on a block theme. Showing fewer columns also helps, for example columns="title,attributes,price,button".
Set "Variations sent with the page" under WooCommerce → Variations Table → Settings (30 by default), or filter rwvt_ajax_variation_threshold per product. Products above the limit use a single AJAX request per selection instead.
Yes. Choose "Cart" under WooCommerce → Variations Table → Settings → Wording. Every button and message the tables show changes. Sites in other languages keep their translation's own word.
They are kept, along with the usage statistics, so reinstalling picks up where you left off. To remove them, tick "Delete these settings and the statistics when the plugin is deleted" under Settings before deleting the plugin.
Yes, compatibility is declared for high performance order storage, cart and checkout blocks, and the product block editor.
layout="grid"): one row per variation, grouped under each product, with checkboxes, quantities, "select all", a summary bar with a running subtotal, and one "Add selected to basket" request that adds everything it can and explains any row it cannot.collapsed), and paging keeps each product's variations together (per_page).filters, hide_out_of_stock): a dropdown per attribute, "In stock only", and search by name or SKU, in both layouts.rwvt_table_filters, rwvt_grid_max_rows and rwvt_bulk_max_items.".thead attribute.wp_send_json_*() instead of echoing raw text.ABSPATH guard and directory index files.$product->id, array access on attributes, and get_matching_variation() are gone.wc_get_product() instead of new WC_Product_Variable().Requires at least, Requires PHP, WC requires at least and WC tested up to headers.<div> between <table> and <thead>.<button disabled>, so an unavailable combination can no longer be added.id now shows "No products found." instead of a blank row.categories_exc, which was previously accepted and ignored.wp_head on every request..pot template.