woocommerce_cart_product_not_enough_stock_already_in_cart_message

woocommerce_cart_product_not_enough_stock_already_in_cart_message

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_cart_product_not_enough_stock_already_in_cart_message') is found 1 times:

  • /includes/class-wc-cart.php line 1253
    					 * @param int $stock_quantity_in_cart
    					 *
    					 * @since 5.3.0
    					 */
    					$message = apply_filters( 'woocommerce_cart_product_not_enough_stock_already_in_cart_message', $message, $product_data, $stock_quantity, $stock_quantity_in_cart );
    
    					throw new Exception( $message );
    				}
    			}
    
    			// If cart_item_key is set, the item is already in the cart.