Gide price for physical product
-
Hi,
I installed your plugin and I really LOVE it. Unfortunately, I have a small issue.My bundle is made of physical products + a software.
The physical part is a PC. I want to hide the price of the parts making it so people won’t compare me with other seller. I want to show them the global price tag as ” The PC is 1400$, no detail about how much each part cost “.
I managed to do this thanks to this code you previously posted :
`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;
}But for a legal reason, I absolutely need to show the software price on the invoice.
Is there a way to change the code a little bit and show only virtual product price ?
I mean ” Hide all the bundle price except for virtual product ” ?
Thank you very much
- The topic ‘Gide price for physical product’ is closed to new replies.