Home › Forums › WooCommerce Personalized Product Options Manager (PPOM) › Issue with bundled Products › Reply To: Issue with bundled Products
September 26, 2018 at 1:30 pm
#9437
Participant
What we could do, is maybe remove the filter on a certain condition
remove_filter ( 'woocommerce_get_item_data', 'ppom_woocommerce_add_item_meta', 10, 2 );
I need to think about it
addfilter_filter ( 'woocommerce_get_item_data', 'wc_pb_is_bundled_cart_item', 11, 2 );
function ppom_woocommerce_remove_item_meta($item_meta, $cart_item) {
if ( class_exists('WC_Bundles') && wc_pb_is_bundled_cart_item( $cart_item )) {
remove_filter ( 'woocommerce_get_item_data', 'ppom_woocommerce_add_item_meta', 10, 2 );
}
}
We can test this maybe in functions.php
-
This reply was modified 6 years, 4 months ago by
Lievelabels.nl.