Skip to content

Instantly share code, notes, and snippets.

splozm / functions.php
Last active Jul 12, 2018 — forked from kloon/functions.php
WooCommerce Dropdown Product Quantity, including selected quantity in cart. Fully compatible with Min/Max quantities extension
View functions.php
// Place the following code in your theme's functions.php file
// override the quantity input with a dropdown
function woocommerce_quantity_input($data = null) {
global $product;
$defaults = array(
'input_name' => 'quantity',
'input_value' => '1',
You can’t perform that action at this time.