CBM Calculator

描述

CBM Calculator is a powerful shipping calculator plugin that helps you calculate cubic meters (CBM), cubic feet (CFT), volumetric weight, and container fitting — directly on your WordPress site.

Powered by the CBM Calculator API, the plugin delivers accurate real-time calculations as you type.

Three Calculator Templates

Single Product
Calculate CBM, CFT, volumetric weight (sea & air), and container fitting for one product at a time. Perfect for simple shipping queries.

Multiple Products
Add multiple products in a table layout, each with its own dimension unit and weight unit. Get per-row results and grand totals for CBM, CFT, and quantity.

Container Fitting
Visual card layout showing exactly how many units fit in a 20 FT, 40 FT, and 40 FT HC container.

Key Features

  • Real-time calculations as you type — debounced for accuracy
  • 3 calculator templates to suit different use cases
  • Per-row unit of measurement in Multiple Products template
  • Full color customization — Primary, Header, Button, Background, Text, Border
  • Border radius control for sharp or rounded styling
  • Show/hide optional fields — Volumetric Weight Sea, Volumetric Weight Air, Container Fit
  • Reset to Defaults button in settings — preserves your API key
  • Fully responsive — works on mobile, tablet, and desktop
  • Simple shortcode: [cbmcal_calculator_plugin]

Supported Units of Measurement

Dimensions: cm, mm, meter, inch, feet, yard
Weight: kg, lb

API Key

This plugin requires a free API key from cbmcalculator.com. You receive 100 free API calls for development. Paid plans are available for production use.

Usage

Add the shortcode to any page or post:

[cbmcal_calculator_plugin]

Then go to Settings CBM Calculator to configure your API key, choose a template, customize colors, and toggle fields.

屏幕截图

安装

  1. Install plugin from WordPress
  2. Visit https://www.cbmcalculator.com/profile.html?utm_source=wordpress&utm_medium=plugin-readme&utm_campaign=cbm-calculator
  3. Create a free account
  4. Copy your API key from the profile page after login (100 free API calls for development)
  5. Go to Settings > CBM Calculator and paste your API key
  6. Choose a template, customize colors, toggle fields
  7. Add shortcode [cbmcal_calculator_plugin] to any page or post

常见问题

Where do I get an API key?

Visit cbmcalculator.com/profile.html, create a free account, and copy your API key from the profile page.

How many free API calls do I get?

You get 100 free API calls for development. For production use, paid plans are available on cbmcalculator.com.

Which shortcode do I use?

Add [cbmcal_calculator_plugin] to any page, post, or widget.

Can I customize the colors?

Yes — go to Settings CBM Calculator and you will find color pickers for Primary, Header, Button, Background, Text, and Border colors, plus a border radius slider.

Can I hide certain fields?

Yes — in Settings CBM Calculator you can toggle Volumetric Weight Sea, Volumetric Weight Air, and Container Fit on or off.

Does it work on mobile?

Yes — the calculator is fully responsive and adapts to any screen size.

Which units of measurement are supported?

Dimensions: cm, mm, meter, inch, feet, yard. Weight: kg, lb.

评价

此插件暂无评价。

贡献者及开发者

「CBM Calculator」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「CBM Calculator」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.2.0

  • Tested up to WordPress 7.0
  • New: 3 calculator templates — Single Product, Multiple Products, Container Fitting
  • New: Per-row dimension and weight unit selectors in Multiple Products template
  • New: Color customization — Primary, Header, Button, Background, Text, Border
  • New: Border radius control
  • New: Show/hide fields — Volumetric Weight Sea/Air, Container Fit
  • New: Reset to Defaults button in settings (preserves API key)
  • Improved: Debounced calculations — no more stale results on fast typing
  • Improved: Responsive design, full width layout
  • Fixed: Settings save issue with color fields

1.1.0

  • Tested up to WordPress 6.8
  • Replaced deprecated wp_print_scripts hook with wp_enqueue_scripts
  • Moved inline event handlers to JavaScript
  • Improved mobile responsiveness
  • Fixed typo in error message
  • Replaced deprecated new Object() with object literal syntax

1.0.0

  • Initial release