| 开发者 |
ulloa
13node |
|---|---|
| 更新时间 | 2026年9月6日 01:07 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[trecesizer chart="leotards"] and a "Calculate my size" button
appears. It opens the calculator without loading the page again. If the page already has a size
dropdown, the answer fills it in — on a product that means the variation and the price follow.
And the button remembers: next visit it reads "Your size: 10 · recalculate".[trecesizer chart="leotards" label="What size is she?" select="#talla"]
chart — the size chart, by slug, title or id. Required. Name one that does not exist and
nothing is printed at all: no button, no error.label — the button's wording. Defaults to "Calculate my size".select — a CSS selector for the dropdown to fill in. Left out, WooCommerce's own variation
dropdowns are the target.trecesizer folder to /wp-content/plugins/, or install the ZIP from Plugins → Add New.[trecesizer chart="your-chart"] on a page, or assign the chart to a 13Atelier size step.No, and it works the same on a site without it. 13Sizer calls nothing of WooCommerce's own, loads none of its code and hooks none of it: it answers one question — which size — and hands the answer to whoever asked. On a product page it can go one step further and fill in the size dropdown, but it does that the way a customer would, by changing the dropdown the page already has. Whatever owns that dropdown reacts on its own; that is how the variation and the price follow.
No. They work together when both are installed, and each works alone when the other is not.
Nothing breaks. The sizes and measurement limits of the chart are copied into the 13Atelier step whenever you save it, so the step falls back to that plugin's own size picker with the right sizes already in it.
Yes, as many as you have patterns. Each shortcode and each configurator step names the one it uses.
Yes. On a page that already has one, the modal fills it in and lets whatever owns it react — on a WooCommerce product that means the variation updates and the price with it. It works by finding the dropdown and changing it, the same as a customer would; the plugin calls nothing of WooCommerce's own.
The chart's sizes have to be named exactly like the dropdown's options: a chart saying 10 finds 10, not Talla 10. Only an exact match counts, because guessing would eventually put somebody in the wrong size. If there is no match, the modal says the product does not offer that size instead of choosing something else.
Use select="…" with a CSS selector to point at a specific dropdown; left out, WooCommerce's variation dropdowns are the target.
select attribute to point at a specific one; without it, WooCommerce's variation dropdowns are the target.60/66) as well as a dash, so a printed chart can be typed in exactly as it reads.[trecesizer] button and modal, and the 13Atelier size step.