• Resolved ibrahimal3ed

    (@ibrahimal3ed)


    Hello, Thanks for this great plugin

    I want to know if there is a way using css to hide the price of the bundled products in the cart, checkout and email as well

    thanks again

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WPClever

    (@wpclever)

    Hi @ibrahimal3ed

    Please add below code to current theme (or child-theme) / functions.php

    add_filter( 'woocommerce_cart_item_price', 'hide_bundled_product_price', 99, 2 );
    add_filter( 'woocommerce_cart_item_subtotal', 'hide_bundled_product_price', 99, 2 );
    add_filter( 'woocommerce_order_formatted_line_subtotal', 'hide_bundled_product_price', 99, 2 );
    function hide_bundled_product_price( $price, $cart_item = null ) {
    	if ( isset( $cart_item['woosb_parent_id'] ) || isset( $cart_item['_woosb_parent_id'] ) ) {
    		return '';
    	}
    
    	return $price;
    }
    Thread Starter ibrahimal3ed

    (@ibrahimal3ed)

    Thanks a lot !

    You really helped me ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide price of the bundled products’ is closed to new replies.