Admin interface

Product details page

On the product details page, the module adds some quantity related settings that can be used to set:

  • the length of the fractional part of product quantity;
  • custom product quantity units;
  • allowed quantities for adding to cart.

Order and invoice

When a product with custom-defined product quantity units is purchased, the order info and the order invoice in the store’s back end show the product quantity with quantity units. For example, the screenshot below shows what it looks like on the General info tab of the order details: 

And here is the order invoice:

Customer interface

Product page

If decimal quantities have been allowed for a product by the seller, customers can specify the quantity they wish to purchase using numbers with a fractional part:

If the seller has set allowed quantities for adding some product to the shopping cart, on the page of that product on the storefront the Qty field is provided in the form of a selectbox from which customers can choose one of the allowed quantities:

If the product has custom quantity units defined, the quantity units can be selected from the selectbox on the right-hand side of the Qty field:

If the product has allowed quantities defined, and these allowed quantities are associated with specific quantity units, the selection can be performed using the combined selectbox with allowed quantities and quantity units:

The price is adjusted dynamically according to the product quantity and quantity units selected.

The module Wholesale is supported with regard to decimal quantities. Also, minimum and maximum purchase quantities are adjusted if a customer switches from one type of quantity units to another.

Cart page

On the cart page, product quantities are shown with product quantity units:

The product price is calculated and displayed based on what product units are being used.

Checkout

If custom quantity units are defined, on the checkout page they are displayed next to the product quantities:

The product price is calculated and displayed based on the product units selected.

Invoice

In the order invoice, product quantity units can also be seen next to the product quantities they define:

The product price in the invoice is shown according to what product units have been used.

Related pages: