woothemes/woocommerce — Issue #548: Bad hook call in cart.class.php - (simple fix)
Author: marke123
Created: 2012-01-30 05:20:00+00:00
State: open

Hi, some around line 340 of cart.class.php, inside the add_to_cart() function, is this filter call:

$cart_item_data = (array) apply_filters('woocommerce_add_cart_item_data', array(), $product_id);

Obviously no point in passing an empty array. Looks to me like it should be this:

$cart_item_data = (array) apply_filters('woocommerce_add_cart_item_data', $variation_id, $product_id);

Can you please fix for WooCommerce v1.4?