Linux 软件免费装
Banner图

Layout Foundry Quantities

开发者 layoutfoundry
更新时间 2026年10月26日 00:08
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce tiles paint quantity calculator decking

下载

0.1.1

详情介绍:

Layout Foundry Quantities adds a planner to WooCommerce product pages. The shopper enters the size of their room, walls, deck, fence run or garden. The planner works out how many whole packs, rolls, tins, boards, panels or bags of that product to buy, and one button adds them to the basket. The planner shows its working as text: the area, the layout count, the allowance, the rounding up to whole packs or rolls, and the material left over. A diagram sits beside the text where one helps. Product types Metric shops use centimetres, metres, square metres, litres and kilograms. Imperial shops use inches, feet, square feet, US gallons and pounds. Setting up products The planner shows above the add-to-basket button on the product page. In a block theme you can also place the Quantity planner block in the single product template, and turn off the automatic placement under Products > Quantities. Privacy Free Every feature on this page is free, with no limit on products. Source code The planner is written in TypeScript. The files in assets/embed/ are built from the TypeScript in the source/ folder of this plugin with esbuild. The build steps are in source/BUILD.md.

安装:

  1. Install and activate WooCommerce 8.5 or later.
  2. Install Layout Foundry Quantities from Plugins > Add New, or upload the plugin folder to wp-content/plugins/, then activate it.
  3. Edit a simple product whose price is per pack or per roll. Open Product data > Quantities, tick Quantity planner and fill in the sizes.
  4. Open the product page and try the planner.

屏幕截图:

  • The add button with the number of packs, and the basket quantity it sets.
  • Product data > Quantities on a tile product.
  • The CSV import preview with a status for every row.

升级注意事项:

0.1.1 The CSV import screen no longer scrolls sideways. 0.1.0 First release.

常见问题:

What does the CSV file look like?

The first row names the columns. For example: sku,product,units,tile_size,pieces_per_pack,joint,allowance GREY-3060,tiles,cm,30x60,8,3,10 The columns are sku or product_id, then any of enabled, product, units, tile_size, pieces_per_pack, coverage, joint, pattern, allowance, roll_width, roll_length, pattern_repeat, match, spread_rate, coats, tin_size, joist_spacing, panel_width, post_width, density and bag_size. A blank cell clears that setting. The full list with allowed values is on the import page.

Why does the planner not show on a product?

The planner shows on simple products whose settings are complete. Tiles, flooring and paving need a piece size with pieces per pack, or a coverage per pack. Wallpaper needs a roll width and a roll length. Paint needs a coverage and a tin size, decking a board size, fencing a panel width, gravel a density and a bag weight, and turf a roll size or a coverage per roll. When a setting is missing, the product screen says what to add and keeps the planner off.

Can paint come in several tin sizes?

Each simple product is one tin size, so the planner counts whole tins of that size. Set up each size as its own product.

Does the planner check the shopper's measurements?

No. It works out quantities from the sizes the shopper enters and the allowance shown. Shoppers should measure carefully and check the result before they buy.

Does it work with a CDN or a script optimisation plugin?

The planner starts a background worker from the file beside its script, and browsers only allow that from your own domain. If a CDN or optimisation plugin moves scripts to another domain, exclude wp-content/plugins/layout-foundry-quantities/assets/embed/ from it.

更新日志:

0.1.1 0.1.0