Tivy Add-ons Matrix for YITH Product Add-Ons

Description

Product add-on rules build up over time. A rule for one category, another for “all products” with a few exceptions, an old one somebody disabled but never deleted… After a year or two nobody can say for sure which options a given product shows, or why.

Tivy Add-ons Matrix reads your YITH Product Add-Ons rules (blocks) and lays them out against your products, so you can see the whole picture on one screen.

It is strictly read-only: it never writes to the database, never changes a rule, and is safe to run on a live shop.

What you get

  • Matrix – every product down the side, every rule across the top. Each cell shows how the rule reaches the product: assigned directly, via a category, via a tag, via “All products”, or excluded by an exception.
  • Per-product view – the rules a customer sees on that product, in YITH priority order, with every option they contain. Also lists everywhere the product is named: in rule product lists, exclusions, or sold as an option inside another product’s add-ons.
  • Per-rule view – what the rule includes and excludes, the products it reaches, the products it is excluded from, and any products it sells as options.
  • Health checks – catches the things that quietly go wrong:
    • enabled rules that reach no products
    • exclusions saved while the Exclude switch is off (so they are ignored)
    • rules pointing at deleted or trashed products and categories
    • the same product sold as an option in more than one rule
    • products receiving the same option title from two rules
    • published products that get no add-ons at all
  • Filters – by category (including sub-categories), product name or ID, disabled rules and unpublished products, plus a switch to hide unused rows and columns.
  • CSV export – the matrix as a spreadsheet, honouring the current filters.
  • Diagnostics – shows exactly how YITH has stored your rules, so you can check the interpretation.

Requirements

  • WooCommerce
  • YITH WooCommerce Product Add-Ons & Extra Options (free or premium), version 2.0 or later (the version that stores rules as “blocks”)

Not affiliated with YITH

This is an independent plugin by Tivy. It is not made, endorsed or supported by YITH. “YITH” is a trademark of its owner and is used here only to describe compatibility.

Installation

  1. Install and activate the plugin from Plugins Add New, or upload the zip.
  2. Go to WooCommerce Add-ons Matrix.

There are no settings. The page is visible to users who can manage WooCommerce.

FAQ

Will this change my add-on rules?

No. The plugin only runs SELECT queries. It has no save buttons and stores nothing of its own.

A category rule doesn’t seem to reach products in sub-categories

Tick Category rules cover sub-categories in the filters if your YITH set-up applies category rules to child categories as well.

Does it account for user roles or other conditions?

It shows when a rule is limited by user association, but the matrix is about products. Conditional logic inside a rule (show option X if option Y is chosen) is not evaluated.

Can I move the page to a different menu?

Yes:

add_filter( 'tivy_aom_parent_menu', function () { return 'edit.php?post_type=product'; } );

Can I change who can see it?

Yes, with the tivy_aom_capability filter. The default is manage_woocommerce.

Is it compatible with HPOS?

Yes. It does not touch orders.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Tivy Add-ons Matrix for YITH Product Add-Ons” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.3

  • First wordpress.org release.
  • Plugin URI now points to the product page.

1.0.2

  • Code tidy for Plugin Check (no functional change).

1.0.1

  • New: “Hide unused rows and columns” filter trims the matrix (and CSV) to products and rules that actually meet.

1.0.0

  • First public release.