Filter to change the product quantity minimum in the order editor of the admin area.
'0', $product, 'edit'
Sortie :
@param string $step The current minimum amount to be used in the quantity editor. @param WC_Product $product The product that is being edited. @param string $context The context in which the quantity editor is shown, 'edit' or 'refund'.
// Modifier la valeur avec le filtre 'woocommerce_quantity_input_min_admin'
add_filter('woocommerce_quantity_input_min_admin', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre('0') {
// Modifier la valeur
return '0';
}
Chargement des actualités...