Checkout Page

WooCommerce: Quantity in Multiples of X on Cart and Before Checkout

Restrict Product Quantity in Multiples of X

I wanted to restrict WooCommerce to only selling in set quantities of 4, 8, or 12 and on. I wrote a code, which will show a quantity error on the cart page or while processing checkout. While processing checkout, it will work exactly like checkout field validation. The code snippet below will allow the user …

WooCommerce: Quantity in Multiples of X on Cart and Before Checkout Read More »