HDWebmobile Size Charts
Add size charts to product categories — edited only through a capability- and nonce-checked admin form.
Overview
HDWebmobile Size Charts lets you build size-guide tables (Size / Bust / Waist / Hips, or whatever columns you choose) and assign each one to one or more product categories. A “Size chart” disclosure appears automatically on matching product pages. Any individual product can override its category’s chart from its own Product data panel.
“Product Size Charts for WooCommerce” (versions up to and including 2.4.5) shipped CVE-2025-23991 (CWE-862 Missing Authorization): the chart-configuration write path had no capability check, letting it be changed by users who should never have been able to touch store-wide content. This plugin closes that by construction: there is one write path, properly gated — the chart-save method is called from exactly one place, the settings-save handler, which checks current_user_can('manage_woocommerce') and a verified nonce before a single field is read. There is no image upload anywhere — a chart is only ever a table of admin-typed text (column headers and rows), so there’s nothing file-shaped in this plugin for a write-path bug to touch. Every value is validated regardless of caller: category assignments are checked against real, existing category terms, every cell is sanitised text, and a chart with no name, columns, or rows is silently skipped rather than guessed at.
Key Features
- Build any number of size charts with your own column headers and rows
- Assign a chart to one or more product categories
- Override the category default on any individual product
- No image upload, no JavaScript, no modal library — a plain, accessible
<details>disclosure - Works on classic and block-based product templates
Limitations
Please read before installing:
- Charts are plain text tables only — no image-based size charts in this version
- One chart per product (the most specific match: product override, then category)
- No per-variation charts
Quick Setup
- Upload the plugin files to the /wp-content/plugins/hdwebmobile-size-charts directory, or install through the Plugins screen directly.
- Activate the plugin through the ‘Plugins’ screen in WordPress. WooCommerce must already be installed and active.
- Go to WooCommerce > Size Charts, build a chart, and assign it to a category.
Latest Version
Current stable version in readme: 1.0.0 (Initial release: category and per-product size charts, capability- and nonce-gated configuration, no image upload surface.)
See our other WordPress plugins for more WooCommerce and site-utility tools.
