Composite Products - error on WooCommerce Cart page
With some installation could happen that the cart page display this error:
YITH_WCP_Cart::cart_item_quantity() in /home/antaly5/public_html/shop/wp-content/plugins/yith-composite-products-for-woocommerce-premium/includes/class.yith-wcp-cart.php on line 564
the issue is related to theme that overwrite the WooCommerce template cart.php, in the file:
wp-content/themes/YOUR_THEME_NAME/woocommerce/cart/cart.php:
is caused by the filter "woocommerce_cart_item_quantity" that in some themes missed the third argument:
echo apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key );
below the right code:echo apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key, $cart_item );
changing the code like above will fix the issue and the error disappear.