WP SITES

2952 Tutorials & 191 Plugins

Minimum Order Quantity Based on Shipping Zone in WooCommerce

$85.00

This PHP code enables you to set a minimum order quantity per shipping zone in WooCommerce.

In this case, multiple minimum order quantities are set for local pickup and delivery.

If the minimum quantity is not met, an error notice displays preventing checkout until the quantity is increased above the minimum.

The above gallery images show the minimum of 10 when the Pickup point 1 and 2 are displayed based on local pickup location set in the shipping zone. This works when 2 Local Pickup methods are added using 1 shipping zone.

When delivery is shown, the minimum quantity is set to 20.

Installation

There’s 2 simple steps :

1. Copy and paste the PHP code to the end of your child themes functions.php file or custom functionality plugin.

2. Set your zone ID’s on lines 23 and 26 and your minimum quantities on lines 24 and 27 with a default on line 30. Support included.

Find Shipping Zone I.D’s

Inspect the shipping zone name to find the I.D.

Shipping Zone id

These solutions may also help :