=== Pallet Sales for eCommerce ===
Contributors: svoronin
Tags: woocommerce, pallet, sales, construction, materials
Requires at least: 5.0
Tested up to: 6.9
Stable tag: 1.1.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Sell products by pallets with area calculation. Perfect for tiles, stones, and other construction materials.

== Description ==

**Pallet Sales for eCommerce** is a powerful plugin that allows you to sell products by pallets with automatic area calculation. This plugin is perfect for construction materials, tiles, paving stones, and other products typically sold in pallet quantities. Works seamlessly with WooCommerce.

= Key Features =

* **Pallet-based Sales**: Convert regular WooCommerce products to sell by pallets
* **Area Calculation**: Automatically calculate total coverage area based on pallet size and quantity
* **Dynamic Pricing**: Display price per square meter while selling by pallets
* **Weight Calculation**: Calculate total weight and number of stones per pallet
* **Area Calculator**: Built-in calculator to help customers determine required pallets
* **Cart Integration**: Enhanced cart display showing pallet quantities and total areas
* **Variable Products**: Full support for WooCommerce variable products
* **Multilingual Support**: Ready for translation with .pot file included

= Perfect For =

* Construction material suppliers
* Tile and stone retailers
* Paving stone vendors
* Landscaping supply companies
* Any business selling products by pallets

= How It Works =

1. **Enable Pallet Sales**: Check the "Sold by pallets" option in product settings
2. **Set Pallet Area**: Define the coverage area of one pallet in square meters
3. **Configure Details**: Set stone weight and stones per square meter for calculations
4. **Customer Experience**: Customers see area calculator and can determine required pallets
5. **Enhanced Cart**: Cart displays pallet quantities, total area, and weight information

= Languages =

* English (default)
* Estonian
* Russian
* Ready for translation to other languages

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/pallet-sales-ecommerce` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress
3. Make sure WooCommerce is installed and activated
4. Go to your product edit screen and you'll see the new "Pallet Settings" section

== Frequently Asked Questions ==

= Does this plugin work with variable products? =

Yes! The plugin fully supports WooCommerce variable products. Each variation can have its own pallet settings.

= Can I set different pallet sizes for different products? =

Absolutely! Each product can have its own pallet area, price, and configuration.

= Will this work with my theme? =

The plugin is designed to work with any WooCommerce-compatible theme. It uses standard WooCommerce hooks and styling.

= Can I customize the appearance? =

Yes, the plugin includes CSS classes that you can style to match your theme.

= Is the plugin translation-ready? =

Yes, the plugin includes .pot files and is ready for translation. Estonian and Russian translations are included.

== Screenshots ==

1. Pallet settings in product admin
2. Frontend pallet calculator
3. Enhanced cart view with pallet information
4. Product page with pallet pricing

== Changelog ==

= 1.1.7 =
* Added WooCommerce dependency check on plugin activation
* Added WooCommerce version requirement check (minimum 5.0)
* Added automatic deactivation if WooCommerce is deactivated
* Improved plugin activation security and reliability

= 1.1.6 =
* Reduced plugin tags to comply with WordPress.org 5-tag limit

= 1.1.5 =
* Replaced direct script output in calculator with wp_add_inline_script() for WordPress.org compliance

= 1.1.4 =
* Fixed calculator JavaScript execution by using direct script output
* Widened cart quantity input field to display larger numbers correctly
* Removed debug console.log statements
* Improved code formatting and indentation
* Enhanced calculator reliability and user experience

= 1.1.3 =
* Added proper prefixing (pallsafo_) to all meta keys for uniqueness
* Converted all inline scripts to wp_add_inline_script() for WordPress.org compliance
* Converted all inline styles to wp_add_inline_style() for WordPress.org compliance
* Fixed translation function escaping using esc_html__() and esc_html_e()
* Improved WordPress coding standards compliance
* Enhanced security with proper data sanitization and validation

= 1.1.0 =
* Renamed plugin for universal use
* Added internationalization support
* Included Estonian and Russian translations
* Enhanced documentation
* Improved code structure

= 1.0.2 =
* Fixed price display issues
* Improved calculator functionality
* Enhanced mobile responsiveness

= 1.0.1 =
* Added support for variable products
* Fixed JavaScript issues
* Improved cart display

= 1.0.0 =
* Initial release
* Basic pallet sales functionality
* Area calculation features

== Upgrade Notice ==

= 1.1.7 =
Critical update: Adds proper WooCommerce dependency checking to prevent activation without WooCommerce. Improves plugin stability and security.

= 1.1.6 =
This version complies with WordPress.org 5-tag limit requirement.

= 1.1.5 =
This version fixes script enqueue compliance for WordPress.org review.

= 1.1.4 =
This version fixes critical calculator functionality and improves cart quantity display. Recommended update for all users.

= 1.1.0 =
This version makes the plugin universal and ready for WordPress repository. Includes internationalization support and multiple language translations.