Calculadora de Cajas por m² para WooCommerce

Boxes per m² Calculator for WooCommerce

Optimize material calculation in your online store

This plugin allows you to add a calculator to the WooCommerce frontend to estimate how many boxes of material are needed based on the entered square meters. Ideal for selling tiles, flooring, cladding, and other products sold by the box.

Key Features

✅ Automatic calculation of the number of boxes needed based on m².
✅ Quick setup from the backend with direct access.
✅ Ability to define how many m² each box covers in the product editing.
✅ Shortcodes available to display the calculator and additional details.
✅ Compatible with all current versions of WooCommerce and WordPress.

How It Works

1️⃣ Access the plugin settings from the backend and check the available shortcodes.
2️⃣ Edit a product and define how many m² each box covers.
3️⃣ Use the shortcode on the frontend to display the calculator.
4️⃣ Use additional shortcodes to display extra information, such as the price per box and the coverage in m².

Available Shortcodes

📝 Box Calculator
[calculadora_m2] – Displays the calculator anywhere on the frontend.

📝 Additional Information
[precio_caja] – Displays the price per box.
[metros_por_caja] – Indicates how many m² each box covers.
[precio_m2] – Displays the price per square meter.

Screenshots

🔹 Backend Settings
Box Calculator for WooCommerce

🔹 Product Settings
Box Calculator for WooCommerce

🔹 Product View with Calculator
Box Calculator for WooCommerce

🔹 Standalone Calculator in the Frontend
Box Calculator for WooCommerce

🔹 Placing Shortcodes
Box Calculator for WooCommerce

🔹 Additional Information View
Box Calculator for WooCommerce

Compatibility

✔️ Plugin tested and fully functional.
✔️ Compatible with all versions of WooCommerce and WordPress.

Support and Contact

If you have any questions or need help, you can report it on fersosa.com. You can also leave comments with suggestions and improvements.

Update Log (Changelog)

### Version 1.0.0
– Description: Initial plugin version.
– Functionality:
– Custom field on the product page to enter “Boxes per m2”.
– Shortcode `[calculadora_m2]` to display the calculator on the frontend.
– Ability to save numeric values less than 1 in the backend.
– Replacing commas with dots when saving values in the backend.

### Version 1.0.1
– Fixes:
– Bug: The plugin did not allow saving decimal values in the backend.
– Solution: The field was changed from `number` to `text` to allow decimals.
– Validation: Manual validation was added to ensure that the entered value is numeric, including decimals.
– Saving: Saving of values was improved, replacing commas with dots and validating that the entered value is a valid number.

### Version 1.0.2
– Improvements:
– CSS was added to improve the frontend appearance of the calculator.
– The display issue of the “Boxes per m2” field in the backend when saving decimal values was resolved.

### Version 1.2.0
– Calculation change: It now indicates how many m² a box covers instead of how many boxes are needed per m². This simplifies the calculation.

### Version 1.2.1
– Visual improvements: CSS styles were applied to improve the frontend appearance.

### Version 1.2.2
– Calculation automation: The “Calculate” button was removed, as the calculation is performed automatically when entering the square meters.

### Version 1.2.3
– Added functionality to export and import the custom field `_m2_por_caja` in the product CSV

Share

Leave A Comment