Woocommerce: Hide prices from individual products
-
Hi,
I’m setting up a woocommerce webshop and I want to hide the individual product prices and only show the grand total in the cart or checkout page.
I’ve added this to my functions.php:
add_filter( ‘woocommerce_variable_sale_price_html’, ‘remove_prices’, 10, 2 );
add_filter( ‘woocommerce_variable_price_html’, ‘remove_prices’, 10, 2 );
add_filter( ‘woocommerce_get_price_html’, ‘remove_prices’, 10, 2 );function remove_prices( $price, $product ) {
$price = ”;
return $price;
}This will remove the prices from the shop and productpages, but I can’t figure out how to add the cart and checkout pages as well. I’m no coder, copied this code from a blog ??
Can anyone help me with this please?
Thanks!
- The topic ‘Woocommerce: Hide prices from individual products’ is closed to new replies.