Skip to content

Instantly share code, notes, and snippets.

@woogists
woogists / wc-adjust-quantity-input.php
Last active December 6, 2021 10:39
Adjust the quantity input values
/**
* Adjust the quantity input values
*/
add_filter( 'woocommerce_quantity_input_args', 'jk_woocommerce_quantity_input_args', 10, 2 ); // Simple products
function jk_woocommerce_quantity_input_args( $args, $product ) {
if ( is_singular( 'product' ) ) {
$args['input_value'] = 2; // Starting value (we only want to affect product pages, not cart)
}
$args['max_value'] = 80; // Maximum value
From b8425aaca49e8f88d114426626cd8266e1e37d34 Mon Sep 17 00:00:00 2001
From: Morgan Jones <me@numin.it>
Date: Sun, 13 Mar 2016 00:56:04 +0000
Subject: [PATCH] Add quirks for Yuan Yuan Enterprises capture cards
---
drivers/pci/quirks.c | 7 +++++++
include/linux/pci_ids.h | 4 ++++
2 files changed, 11 insertions(+)