/** * Show normal price, new price and savings */ add_filter('woocommerce_get_price_html', 'cc_product_price_savings_format', 10, 2); function cc_product_price_savings_format($price, $product) { if ($product->is_on_sale() && $product->is_type('simple')) { $price = sprintf( __('
Was: %1$s
Now: %2$s
Save: %3$s
', 'woocommerce'), wc_price ($product->get_regular_price()), wc_price($product->get_sale_price()), wc_price($product->get_regular_price() - $product->get_sale_price())); } return $price; }