Giter VIP home page Giter VIP logo

quantities-and-units-for-woocommerce's Introduction

=== Quantities and Units for WooCommerce ===
Contributors: greatwitenorth
Tags: woocommerce, product quantities, product minimum values, product maximum values, product step values, incremental product quantities, min, max, decimal
Donate link: https://www.nickv.codes/donate
Requires at least: 3.5
Tested up to: 4.3
Stable tag: 1.0.13
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Easily require your customers to buy a minimum / maximum / incremental amount of products. Supports decimal quantities.

== Description ==
NOTE: This plugin has been forked from the "Advanced Product Quantities" plugin. It adds decimal quantities support and 
units to products. Please don't attempt to run both plugins simultaneously. It not needed and the universe will 
probably implode.

With Quantities and Units for WooCommerce you can easily create rules that restrict the amount of products a user can 
buy at once. Set Minimum, Maximum and Step values for any product type and must be valid before a customer can proceed 
to checkout. Quantities and Units also bring decimal quantity support to WooCommerce.

This plugin works great with [Rapid Order](http://rapidorderplugin.com/), a fast ordering system for WooCommerce. 

New Features

* Allow decimal quantities (configure this in Quantity Rule -> Advanced Rule -> Site Wide Step Value)
* Specify a unit of measurement for the quantity (ie lbs, kg, bag etc)

Features:

* Added Custom Quantity Message Option
* Added Out of Stock Min/Max
* Added Role Support, create rules based on user roles.
* Improved performance / caching
* Improved admin interface
* Allows rules to have a minimum of 0
* Set a Minimum product quantity requirement
* Set a Maximum product quantity requirement
* Sell products by a desired increment ie. by two's or the dozen
* Create product category based rules
* WooCommerce Validation rules tells users what rules they've broken directly on the cart or product page
* Set rule priority to layer multiple rules on top of each other
* Add your rule based input boxes to products thumbnails using [WooCommerce Thumbnail Input Quantities](http://wordpress.org/plugins/woocommerce-thumbnail-input-quantities/installation/)
* Easily override rules on a per-product basis
* Integrates with [WooCommerce's Product CSV Import Suite](http://www.woothemes.com/products/product-csv-import-suite/)
* See which rule is being applied to an individual product on your edit product page
* Now fully supports ALL PRODUCT TYPES, simple, variable, grouped and affiliate
* Create Site Wide rules that apply to every product unless overwritten on a per-product basis
* Create rules by Product Tags (opposed to just categories)
* Woocommerce +2.0 compatible 

== Installation ==

Automatic WordPress Installation

1. Log-in to your WordPress Site
2. Under the plugin sidebar tab, click ‘Add New’
3. Search for 'Quantities and Units for WooCommerce'
4. Install and Activate the Plugin
5. Set Rules for categories by clicking the new ‘Quantity Rules’ sidebar option or assign per-product rules by using the new metabox on your product page.

NOTE: to enable decimal quantities you need to define the 'Step' value on a per product basis, or globally for the site under Quantity Rule -> Advanced Rule -> Site Wide Step Value.

Manual Installation

1. Download the latest version of the plugin from Quantities and Units for WooCommerce WordPress page.
3. Uncompress the file
4. Upload the uncompressed directory to ‘/wp-content/plugins/’ via FTP
5. Active the plugin from your WordPress backend ‘Plugins -> Installed Plugins’
6. Set Rules for categories by clicking the new ‘Quantity Rules’ sidebar option or assign per-product rules by using the new metabox on your product page.

== Changelog ==
= 1.0.13 =
* Fixed input issue introduced in 10.0.12 release

= 1.0.12 =
* Fixed an issue where sometimes the correct value would not display when using decimal quantities. 

= 1.0.11 =
* Fixed issue with max value causing amount not to increment correctly in some circumstances.

= 1.0.10 =
* fixed an issue with role based quantities not working
* fixed bug with sitewide rules

= 1.0.9 =
* fixed compatibility with Thumbnail Quantities

= 1.0.8 =
* allow decimals on Advanced Rules page

= 1.0.7 =
* fixed min step value based min value.

= 1.0.6 =
* Min and step rules now work with ajax add to cart functionality in WooCommerce 2.5+
* Added min width css rule on quantity input box

= 1.0.5 =
* Fixed issue when trying to save advanced rules.

= 1.0.4 =
* Fixed floating point precision errors

= 1.0.3 =
* Fixed Call to undefined method WooCommerce::add_error() bug

= 1.0.2 =
* Removed admin notice

= 1.0.1 =
* Bug fixes

= 1.0.0 =
* Forked from "Advanced Product Quantities"
* Allow decimal quantities
* Specify a unit of measurement for the quantity (ie lbs, kg, bag etc)

== Screenshots ==

1. Single product page, page loads with it's minimum quantity and notifies the user below.
1. Create rule page. 
1. Single product 'Product Quantity Rules' meta box. Deactivate or override rules. Even set out of stock min/max values.
1. Single product 'Product Quantity Rules' meta box. Display of values by user role.
1. 'Advanced Rules' page, set sitewide rules and configure quantity notifications (screenshot 1)
1. Required configuration for Out of Stock quantities to be displayed.

quantities-and-units-for-woocommerce's People

Contributors

greatwitenorth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

quantities-and-units-for-woocommerce's Issues

Use WooCommerce 3.0 CRUD

PHP Notice: directly accessing product properties:

[03-Sep-2019 17:32:50 UTC] PHP Notice: id was called incorrectly. Product properties should not be accessed directly. Backtrace: WP_List_Table->display, WP_List_Table->display_rows_or_placeholder, WP_Posts_List_Table->display_rows, WP_Posts_List_Table->_display_rows, WP_Posts_List_Table->single_row, WP_List_Table->single_row_columns, WP_Posts_List_Table->column_default, do_action('manage_product_posts_custom_column'), WP_Hook->do_action, WP_Hook->apply_filters, WC_Admin_List_Table->render_columns, WC_Admin_List_Table_Products->render_price_column, WC_Product->get_price_html, WC_Product->get_price_suffix, apply_filters('woocommerce_get_price_suffix'), WP_Hook->apply_filters, WC_Quantities_and_Units_Product_Unit->get_price_suffix, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong Please see Debugging in WordPress for more information. (This message was added in version 3.0.) in /app/public/wp-includes/functions.php on line 4773

Example: $product->id though it looks like there are other places too.

This was deprecated in WooCommerce 3.0 and should be replaced with $product->get_id()

not work add_action

do not work
add_action( 'woocommerce_single_product_summary', array( $this, 'display_minimum_quantity_note' ), $priority );

Solve warning accessing product type

Hi, in

you were calling
if( $product->product_type != 'simple' ) {
return $default;
}

and that should be corrected to
if( $product->is_type( 'simple' ) ) {
return $default;
}

I will create a PR to solve this

Can't save order

I tested this plugin in the past few months and it was working but now it no longer does. Perhaps a new WooCommerce update caused an issue.

When I try to save the order it tries to focus on the qty field and a if it's editable a tooltip pops up saying "Please enter a valid value. The two nearest valid values are 0 and 1."

I love this plugin, is there any chance of an update?

I use this plugin and it works perfectly. My clients want me to remove and find an alternative because it hasn't been updated in so long. Are you looking to update or can you recommend a similar one? I've tried so many and none are as good. None seem to to do the category min qty like yours.

Losing decimals in Qty column on PayPal page

Hello,

Thank you for this plugin!

I'm having an issue where the quantity looks fine in the invoice but when you click the pay link in the email that redirects to PayPal it's it loses all the decimal places. The value shown to pay on the PayPal payment page is as if the values entered into the invoice had no decimal values at all. Hope that makes sense.

Any ideas?

Thanks!

UoM Woo Poly conflict

Dear Nick!

Issue: the unit of measure is not displayed just the price

I did find a bug: the following add-on replaces Your code. https://wordpress.org/plugins/woo-poly-integration/
This plugin allows to have multi language products in my Woo Store by:

  • Allows multiple products to have the same SKU
  • Link the fields of the same products (displayed on different languages): details like Inventory, Shipping and Attributies... so it links the Price of multiple products

Thank You for the great Addon. It works like a charm. Could You please take a look at his issue? It does not seems to be a big one.

step by step not operate with variation product

Hello,

I try to resolve my problem...

With product variation, quantity step by step not operate.

Exemple, I want :
Minimum quantity : 2
Step value : 2

But the result is :
Minimum quantity : 1
Step value : 3......5......7.....9.... etc...

this bug is since of january with new version of wordpress.

thx for help!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.