=== Price Per Unit For WooCommerce ===
Contributors: apurbajnu
Donate link: https://apurba.me/donate
Tags: Price, weight,legnth, area, woocommerce
Requires at least: 6.0
Tested up to: 6.8
Stable tag: trunk
Requires PHP: 8.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Sell product price per unit with the easiest to set up and more configurable Plugin with WooCoommerce.  

== Description ==

Sell product price per unit with the easiest to set up and more configurable Plugin with WooCoommerce.  

This plugin allows you to sell your product depends on the unit
( Weight, length, area, and volume). You can change the price depends on the unit with this plugin. This plugin can help you to depict the price difference very clearly to your audience. 

### Basic Version Features
* Support Multiple views (Numeric and Slider)
* Tiered pricing — different prices for different quantity ranges
* Work with Weight, Length, Area, and Volume basis
* Stock management per unit with WooCommerce integration
* Stock validation — cap slider at stock level or show error on cart
* Unit-aware availability text (e.g., "50 meters available")
* Price Info tab in the product description
* HPOS (High-Performance Order Storage) compatible
* Touch support for mobile devices
* Translation ready (WPML, Polylang, Loco Translate compatible)
* Easy to install and configure
* Supports Simple Products

### Pro Version Features
* Support Multiple views ( Numeric and Slider)
* More Visible with Pricing Slider
* Price difference easily noticeable
* Work With Weight, length, area, or volume basis
* Price Info tab in the description
* Easy to install
* Touch Support for mobile device
* Sell Only the desire amount
* With Custom labels make the price difference more visible to buyers.
* Get Premium Support.
* Support Simple and variable Products

### OFFICIALLY TESTED PLUGINS
* Loco Translate
* WPML
* Polylang

### Setting-up Process
We have developed the plugin remembering in our mind; it should be easy to set up. Enter your product page from the admin panel. You will get a set of the input fields  with proper descriptions called "Price Per Unit metaboxes." You need to fill those fields. That's it. To get more info about this field, I will suggest you follow this link. [Documentation](https://bestdecoders.com/docs/price-per-unit-documentation/how-to-set-up/)

To check the demo, Please Visit this link.
[Price Per Unit Details](https://bestdecoders.com/product/price-per-unit-pro/ "Price Per Unit for WooCommerce")

If You Have Any Suggestions, let us know, please. [Feature Request](https://bestdecoders.com/contact-us/ "Your favorite software"). This way, you can help us to improve the plugin in every way.

### Changelog
1.4.0
Fixed version constant mismatch (was 1.0.0, now matches plugin header)
Added HPOS (High-Performance Order Storage) compatibility for WooCommerce
Fixed undefined array key warning for range_slider_view
Fixed wp_localize_script deprecated usage for currency symbol
Removed leftover debug var_dump and error_log calls
Fixed translation loading by moving textdomain to init hook
Deferred metabox initialization to prevent early translation loading
Fixed repeater_field_support parameter order in Custom Metabox
Updated plugin description and author URI in header
Fixed activator translation calls (removed __() from wp_die during activation)
Raised minimum requirements: WordPress 6.0+, PHP 8.0+, WooCommerce 7.0+
Tested up to WordPress 6.8 and WooCommerce 9.0
1.1
Fixed Major bug
update settings panel
1.2
Add Numeric View
1.3
Fix Mobile touch issue for the Numeric view
By default, active status changed to deactivate
Translatable.
Fix small issues.
1.3.1
Fixed tranlation related issue
1.3.2
Fixed Jquery Ready issue
Price display according to WooCommerce Currency options settings
Fixed Nurmice View Decimal point increment
1.3.3
Fixed Order Data issue

== Installation ==

This section describes how to install the plugin and get it working.

1. Upload the plugin files to the `/wp-content/plugins/plugin-name` directory, or install the plugin through the WordPress plugins screen directly.
1. Activate the plugin through the 'Plugins' screen in WordPress
1. Use the Settings->Plugin Name screen to configure the plugin
1. (Make your instructions match the desired user flow for activating and installing your plugin. Include any steps that might be needed for explanatory purposes)

== Frequently Asked Questions ==

= Does This Plugin work with all types of products =

You can easily configure the Simple product with the free version. To configure variable products, I will suggest you go with the pro version. 

= How to setup Price  =

Remember this plugin calculates the price is not related to the regular price or sale price from the General tab. WooCommerce product price only shows the product price value. You may show the minimum value with the WooCommerce product price.

If you want to sell Rope 7 USD per meter then in the responsibilities field add 1|7, that's it. It means 1 meter or above 1-meter price will be 7 USD per meter. For 3 meter price will be 21 Usd. But if you want to sell a product with a different price for a different length then in the responsibilities field you can set the price like this 20|15,50|12,70|9,100|7. [Learn More](https://bestdecoders.com/docs/price-per-unit-documentation/how-to-set-up/responsibility-calculation-process/)

= What is the difference between Slider View and Numeric View  =

 Slider view gives the ability to select the product quantity with sliding. With the numeric view, your audience will get a numeric input field to select the product quantity. 

To use the slider view, you have to fill the min and max quantity fields. It should have a range. For the Numeric view, Max quantity is not important.


== Screenshots ==

1. Price Per Unit for WooCommerce Slider View
2. Price Per Unit for WooCommerce Numeric View
3. Price Per Unit Pro Slider View with Custom Label
4. Price Per Unit Pro Slider View three dimensional product
5. Price Per Unit Pro Slider View two dimensional product
6. Price Per Unit for WooCommerce Product Description
7. Price Per Unit for WooCommerce settings upper part
8. Price Per Unit for WooCommerce settings lower part


