Product Quantity

OPERATING ENVIRONMENT

↑ Back to top
PHP Compatible8.0+ Recommended (UAT will test on 8.1 & 8.2)
WordPress Version6.4.2 or (Latest at the time of development)
WooCommerce Version9.3.3 or (Latest at the time of development) UAT will test on the Latest Version.
Product Quantityv.1.0

Plugin Description

↑ Back to top

Woocommerce Product Quantity aims to manage and control the number of items a customer can purchase, ensuring inventory accuracy and optimizing the shopping experience.

Features

↑ Back to top
  • Product Quantity General Setting
  • Simple Product Settings
  • Variable Product Settings
  • Product Quantity Rules
  • Notices

Installation

↑ Back to top
  • Download the .zip file from your WooCommerce account.
  • Go to WordPress AdminDashboard PluginsUpload Plugin Choose File.
  • Install Now and Activate Plugin.

Getting Started

↑ Back to top

General Settings – Enable On Simple Products

↑ Back to top
  • Go to WordPress Admin Dashboard WooCommerce Settings Product Quantity General Settings.
  • Click on Enable On Simple Product option from the General Settings tab.
  • Click on the Save Changes button.
  • Navigate to the WordPress Admin Dashboard > Products.
  • Click on the Add New button or Edit the existing one.
  • Navigate to the Product Data > Product Quantity tab.

Enable Product Quantity

↑ Back to top
  • Click the checkbox of Enable Product Quantity. To apply restrictions for the users on that particular product.

Quantity Type

↑ Back to top
  • Navigate and click on the Quantity Type drop-down menu. By default, it will select WooCommerce’s default quantity type.
  • It consists of the following options;

Default Quantity

  • In the Quantity Type, by default, the Default Quantity will be selected; it consists of the following options;
  • Minimum Quantity: Admin can set the minimum quantity in the Minimum Quantity text box.
  • Maximum Quantity: Admin can set the maximum quantity in the Maximum Quantity text box.
  • Click on the Update button.

Front-end Screenshot

  • Login to your account.
  • Go to the Product Page.

Fixed Quantity

  • Admin selects Fixed Quantity from the Quantity Type drop-down menu. It consists of the following options;
  • Fixed Quantity: Admin can enter the fixed quantity in the text box.
  • Click on the Update button.

Front-end Screenshot

  • Login to your account.
  • Go to the Product Page.

Step Quantity

  • Admin selects Step Quantity from the Quantity Type drop-down menu; it consists of the following options;
  • Minimum Quantity: Admin can set the minimum quantity in the text box.
  • Maximum Quantity: Admin can set the maximum quantity in the text box.
  • Step Counter: The admin can set the step counterwhich means it will start from the minimum quantity and skip multiples of the number declared by the admin on Step Quantity until it reaches the maximum quantity. 
  • Click on the Update button.

Front-end Screenshot

  • Login to your account.
  • Go to the Product Page.

Custom Quantity

  • Admin selects Custom Quantity from the Quantity Type drop-down menu. It consists of the following options:
  • Custom Quantities: The admin can set multiple comma-separated custom quantities in the text box.
  • Click on the Update button.
  • Click on the Update button.

Front-end Screenshot

  • Login to your account.
  • Go to the Product Page.

Display Type

↑ Back to top
  • Navigate and click on the Display Type drop-down menu. By default, it will select WooCommerce’s default quantity type.
  • It consists of following options:

Default

  • Admin selects Default from the drop-down menu.
  • Click on the Update button.

Front-end Screenshot

  • Login to your account.
  • Go to the Product Page.

Boxes

  • Admin selects Boxes from the drop-down menu.
  • Click on the Update button.

Front-end Screenshot

  • Login to your account.
  • Go to the Product Page.

Dropdown

  • Admin selects Dropdown from the drop-down menu.
  • Click on the Update button.

Front-end Screenshot

  • Login to your account.
  • Go to the Product Page.

General Settings – Enable On Variation Products

↑ Back to top
  • Go to WordPress Admin Dashboard WooCommerce Settings Product Quantity General Settings.
  • Click on the Enable On Variation Products checkbox from the General Settings tab.
  • Click on the Save Changes button.
  • Navigate to the WordPress Admin Dashboard > Products.
  • Click on the Add New button or Edit the existing one.
  • Navigate and click on the Product Data > Variations from the side tab.

Enable Product Quantity

↑ Back to top
  • Expand any Variation and navigate to the Product Quantity.
  • Click the checkbox of Enable Product Quantity.

Quantity Type

↑ Back to top
  • Navigate and click on the Quantity Type drop-down menu.
  • It consists of the following options;

Default Quantity

  • In the Quantity Type, the Default Quantity will be selected by default. It consists of the following options;
  • Minimum Quantity: Admin can set the minimum quantity in the text box.
  • Maximum Quantity: Admin can set the maximum quantity in the text box.
  • Click on the Update button.

Front-end Screenshot

Fixed Quantity

  • Admin selects Fixed Quantity from the Quantity Type drop-down menu. It consists of the following options;
  • Fixed Quantity: Admin can insert the fixed quantity in the text box.
  • Click on the Update button.

Front-end Screenshot

Step Quantity

  • Admin selects Step Quantity from the Quantity Type drop-down menu. It consists of the following options;
  • Minimum Quantity: Admin can set the minimum quantity in the text box.
  • Maximum Quantity: Admin can set the maximum quantity in the text box.
  • Step Counter: The admin can set the step counter, which means it will start from the minimum quantity and skip multiples of the number declared by the admin on Step Quantity until it reaches the maximum quantity. 
  • Click on the Update button.

Front-end Screenshot

Custom Quantity

  • Admin selects Custom Quantity from the Quantity Type drop-down menu. It consists of the following options;
  • Custom Quantities: The admin can insert multiple commas-separated custom quantities in the text box.
  • Click on the Update button.

Front-end Screenshot

Display Type

↑ Back to top
  • Navigate and click on the Display Type drop-down menu. By default, it will select WooCommerce default quantity type.
  • It consists of the following options:

Default

  • Admin selects Default from the drop-down menu.
  • Click on the Update button.

Front-end Screenshot

  • Login to your account.
  • Go to the Product Page.

Boxes

  • Admin selects Boxes from the drop-down menu.
  • Click on the Update button.

Front-end Screenshot

  • Login to your account.
  • Go to the Product Page.

Dropdown

  • Admin selects Dropdown from the drop-down menu.
  • Click on the Update button.

Front-end Screenshot

  • Login to your account.
  • Go to the Product Page.

General Settings – Enable On Product Quantity List

↑ Back to top
  • Go to WordPress Admin Dashboard WooCommerce Settings Product Quantity General Settings.
  • Click on the Enable On Product Quantity List checkbox from the General Settings tab.
  • Click on the Save Changes button.
  • Navigate to the Product Quantity List on the side menu.
  • Click on the Add New button or Edit the existing one.
  • A tab will open that will consist of the following settings:

Add New Rule

↑ Back to top

Add Title

  • The Admin can enter the Name in the text box, which will be the title to refer to a rule in the Table.
  • Rule in product quantity list table.

Quantity Type

  • In the Quantity Type meta box, navigate and click on the Quantity Type drop-down menu.
  • It consists of the following options;
  • Default Quantity
  • In the Quantity Type, the default quantity will be selected by default. It consists of the following options;
  • Minimum Quantity: Admin can set the minimum quantity in the text box. 
  • Maximum Quantity: Admin can set the maximum quantity in the text box.

Front-end Screenshot

  • Fixed Quantity
  • Admin selects Fixed Quantity from the drop-down menu. It consists of the following options;
  • Fixed Quantity: Admin can insert the fixed quantity in the text box. 

Front-end Screenshot

  • Step Quantity
  • Admin selects Step Quantity from the drop-down menu. It consists of the following options;
  • Minimum Quantity: Admin can set the minimum quantity in the text box.
  • Maximum Quantity: Admin can set the maximum quantity in the text box.
  • Step Counter: The admin can set the step counter, which means it will start from the minimum quantity and skip multiples of the number declared by the admin on Step Quantity until it reaches the maximum quantity.

Front-end Screenshot

  • Custom Quantity
  • Admin selects Custom Quantity from the drop-down menu. It consists of the following options;
  • Custom Quantities: The admin can enter multiple commas-separated custom quantities in the text box.

Front-end Screenshot

  •  Display Type
  • Navigate and click on the Display Type drop-down menu.
  • It consists of the following options;
  • Default quantity selector
  • Boxes quantity selector
  • Dropdown quantity selector

Product Restrictions

  • In the Product Restrictions meta box, the following options will appear;
  • Apply on All Product
  • If the admin wants to apply this rule to his entire shop page, click on the Apply to All Products toggle button. 

Front-end Screenshot

  • Select Products
  • If the admin wants to apply this rule to particular products, enter the name and select the products from the Select Product multi-selecting box.

Front-end Screenshot

  • Step Categories
  • If the admin wants to apply this rule to particular product categories, enter the names and select the categories from the Select Categories multi-selecting box.

Front-end Screenshot

User Restrictions

  • In the User Restrictions meta box, the following options will appear;
  • Select User Role
  • If the admin wants to apply this rule to particular User Roles or Individual Users, enter the name and select the User Roles or Individuals in the Select User Role multi-selecting box.

Before

After

Rule Priority

  • Navigate to the Rule Priority meta box.
  • When the admin clicks on the drop-down menu of Parent Rule, all other rules already made by the admin will appear; whatever rules the admin selects will be considered parents of that rule.
  • Priority Order is the priority of appearing of a particular rule on the user’s end when a Single Role or an Individual User has multiple Product Quantity Rules.

Enable / Disable

  • Navigate to the Enable/Disable meta box.
  • The admin clicks on it to activate the rule, and whatever the admin sets in product Quantity rules will appear on the customer’s end accordingly.

Before

Front-end Screenshot

After

Front-end Screenshot

General Settings – Enable Decimal Quantity

↑ Back to top
  • Go to WordPress Admin Dashboard WooCommerce Settings Product Quantity General Settings.
  • Click on the Enable Decimal Quantity option from the General Settings tab.
  • Click on the Save Changes button.

Decimal Quantity On Simple Products

↑ Back to top

Default Quantity

  • In the Quantity Type, the default quantity will be selected by default. It consists of the following options;
  • Minimum Quantity: The admin can set the minimum quantity in decimal points in the text box.
  • Maximum Quantity: The admin can set the maximum quantity in the text box.
  • Click on the Update button.

Front-end Screenshot

  • On Block Cart/Checkout
  • On Legacy Cart/Checkout

Fixed Quantity

  • Admin selects Fixed Quantity from the drop-down menu. It consists of the following options;
  • Fixed Quantity: Admin can insert the fixed quantity in the text box.
  • Click on the Update button.

Front-end Screenshot

  • On Block Cart/Checkout
  • On Legacy Cart/Checkout

Step Quantity

  • Admin selects Step Quantity from a drop-down menu. It consists of following options;
  • Minimum Quantity: Admin can set the minimum quantity in the text box.
  • Maximum Quantity: Admin can set the maximum quantity in the text box.
  • Step Counter: The admin can set the step counterwhich means it will start from the minimum quantity and skip multiples of the number declared by the admin on Step Quantity until it reaches the maximum quantity. 
  • Click on the Update button.

Front-end Screenshots

  • On Block Cart/Checkout
  • On Legacy Cart/Checkout

Custom Quantity

  • Admin selects Custom Quantity from a drop-down menu. It consists of the following options;
  • Custom Quantities: The admin can insert multiple commas-separated custom quantities in the text box.
  • Click on the Update button.

Front-end Screenshots

  • On Block Cart/Checkout
  • On Legacy Cart/Checkout

Decimal Quantity On Variation of Products

↑ Back to top

Default Quantity

  • In the Quantity Type, the default quantity will be selected by default. It consists of the following options;
  • Minimum Quantity: The admin can set the minimum quantity in decimal points in the text box.
  • Maximum Quantity: The admin can set the maximum quantity in decimal points in the text box.
  • Click on the Update button.

Front-end Screenshots

  • On Block Cart/Checkout
  • On Legacy Cart/Checkout

Fixed Quantity

  • Admin selects Fixed Quantity from the drop-down menu. It consists of the following options;
  • Fixed Quantity: Admin can insert the fixed quantity in the text box.
  • Click on the Update button.

Front-end Screenshots

  • On Block Cart/Checkout
  • On Legacy Cart/Checkout

Step Quantity

  • Admin selects Step Quantity from a drop-down menu. It consists of following options;
  • Minimum Quantity: Admin can set the minimum quantity in the text box.
  • Maximum Quantity: Admin can set the maximum quantity in the text box.
  • Step Counter: The admin can set the step counterwhich means it will start from the minimum quantity and skip multiples of the number declared by the admin on Step Quantity until it reaches the maximum quantity. 
  • Click on the Update button.

Front-end Screenshots

  • On Block Cart/Checkout
  • On Legacy Cart/Checkout

Custom Quantity

  • Admin selects Custom Quantity from the drop-down menu. It consists of the following options;
  • Custom Quantities: The admin can insert multiple commas separated custom quantities in the text box beside the Custom Quantity option in decimal numbers.
  • Click on the Update button.

Front-end Screenshots

  • On Block Cart/Checkout
  • On Legacy Cart/Checkout

Decimal Quantity On Product Quantity Rules

↑ Back to top

Default Quantity

  • In the Quantity Type, the default quantity will be selected by default. It consists of the following options;
  • Minimum Quantity: The admin can set the minimum quantity in decimal points in the text box.
  • Maximum Quantity: The admin can set the maximum quantity in the text box.
  • Click on the Update button.

Front-end Screenshots

  • On Block Cart/Checkout
  • On Legacy Cart/Checkout

Fixed Quantity

  • Admin selects Fixed Quantity from the Quantity Type drop-down menu; it consists of following options;
  • Fixed Quantity: Admin can insert the fixed quantity in the text box.
  • Click on the Update button.

Front-end Screenshots

  • On Block Cart/Checkout
  • On Legacy Cart/Checkout

Step Quantity

  • Admin selects Step Quantity from the Quantity Type drop-down menu; it consists of the following options;
  • Minimum Quantity: The admin can set the minimum quantity in decimal numbers in the text box.
  • Maximum Quantity: The admin can set the maximum quantity in decimal numbers in the text box.
  • Step Counter: The Admin can set the step counterThis means it will start from the minimum quantity and skip the multiple of the number declared by admin on Step Quantity till the maximum quantity in decimal numbers. 
  • Click on the Update button.

Front-end Screenshots

  • On Block Cart/Checkout
  • On Legacy Cart/Checkout

Custom Quantity

  • Admin selects Custom Quantity from the Quantity Type drop-down menu; it consists of following options;
  • Custom Quantities: The admin can insert multiple commas separated custom quantities in the text box beside the Custom Quantity option in decimal numbers.
  • Click on the Update button.

Front-end Screenshots

  • On Block Cart/Checkout
  • On Legacy Cart/Checkout

Notices

↑ Back to top
  • Go to the WordPress Admin Dashboard WooCommerce Settings Product Quantity Notices.
  • The admin can configure notices for users when they exceed the set minimum or maximum quantity.
  • The admin can add a notice for the step counter, which will appear as an alert on the product and cart pages when the user’s selected or entered quantity is not a multiple of the number defined by the admin.

Front-end Screenshots

  • Minimum Quantity Message
  • Maximum Quantity Message
  • Step Counter Message
Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.