This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(+) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 |