Product Quantity

WooCommerce: Conditionally Force Product Quantity 1 @ Cart

There are times when the WooCommerce product settings alone are not enough. You can already tick the “Sold individually” checkbox in the “Inventory” product data tab in the single product edit page to force quantity 1 for whatever product: “Enable this to only allow one of this item to be bought in a single order“. […]

The post WooCommerce: Conditionally Force Product Quantity 1 @ Cart appeared first on Business Bloomer.

WooCommerce: Calculate Subtotal On Quantity Increment @ Single Product

From a UX point of view, ecommerce customers may enjoy a little improvement on the WooCommerce single product page. As soon as they increase the add to cart quantity, it’d be nice if product price could be recalculated or maybe if a “TOTAL” line could appear so that users always know how much they are […]

The post WooCommerce: Calculate Subtotal On Quantity Increment @ Single Product appeared first on Business Bloomer.

WooCommerce: Sync Product Quantities @ Cart

This snippet will help you synchronize all your cart items’ quantities with a given product ID quantity. When you add a second product to cart, therefore, it will get the same quantity of your product ID. Also, if you update the quantity of product ID, the other cart item quantities will automatically update accordingly. Applications […]

The post WooCommerce: Sync Product Quantities @ Cart appeared first on Business Bloomer.

WooCommerce: Set Min Purchase Amount for Specific Product

We already studied how to set min/max WooCommerce add to cart quantity programmatically. That was an easy one. This time, I want to expand on the topic, and define a “minimum order amount on a per-product basis”. Which, translated in plain English, would be something along the lines of “set the minimum purchase amount for […]

The post WooCommerce: Set Min Purchase Amount for Specific Product appeared first on Business Bloomer.

WooCommerce: Bulk Dynamic Pricing Without a Plugin

You’re looking to assign different unit prices based on the quantity added to Cart, for example from 1-100 price is $5, from 101-1000 price is $4.90 and from 1001 units ordered price becomes $4.75. There are many “Dynamic Pricing” plugins out there (and the number #2 on this article would suit complex pricing rules and […]

The post WooCommerce: Bulk Dynamic Pricing Without a Plugin appeared first on Business Bloomer.

WooCommerce: Change Add to Cart Quantity into a Select Drop-down

The default WooCommerce Add to Cart “Quantity Input” is a simple input field where you can enter the number of items or click on the “+” and “-” to increase/reduce the quantity. A freelance client hired me to turn that input into a “Select” drop-down. For their audience and UX requirements, it makes sense to […]

The post WooCommerce: Change Add to Cart Quantity into a Select Drop-down appeared first on Business Bloomer.