| 开发者 | motylanogha |
|---|---|
| 更新时间 | 2026年12月3日 14:46 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.2 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
_coverage_price_per_m2 product meta (dot decimal). It is updated when a product or variation is saved, deleted, trashed or restored, and when a scheduled sale starts or ends, so catalogue filters can read it.coverage/booted action fires after the plugin has booted.coverage/sample/key filter decides which samples count as the same one (default: product, variation and attributes), e.g. one sample per colour across lengths.coverage:change event with { area, pieces, perUnit, price, productId, variationId }./wp-content/plugins/coverwick, or install it from Plugins, Add New.Yes.
On the product edit screen, General tab, "Coverage per unit". Variations can set their own value; empty uses the product value. Leave it empty to turn the calculator off for that product.
Always up to a whole piece. 7.6 m2 with 0.76 m2 per board gives exactly 10 boards; 7.7 m2 gives 11.
The hidden product every sample line is sold as. If it is deleted, it is created again the next time a shopper orders a sample. Past orders keep their sample lines.
Yes. The area and the sample lines show in both, and sample quantities cannot be changed in the block cart.
coverage/sample/key filter decides which samples count as the same one, so a shop can allow one sample per colour across products that differ only in length.coverwick. Settings, product and order data, hooks (coverage/booted, coverage:change) and meta keys (_coverage_*) are unchanged, so an existing install keeps its data. A plugin folder named coverage must be replaced by coverwick and activated again._coverage_price_per_m2 product meta, paid samples.