Skip to content

Instantly share code, notes, and snippets.

@splozm
splozm / functions.php
Last active July 12, 2018 17:49 — forked from kloon/functions.php
WooCommerce Dropdown Product Quantity, including selected quantity in cart. Fully compatible with Min/Max quantities extension
<?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',