Home / Tag Archives: WooCommerce Products Discount price

Tag Archives: WooCommerce Products Discount price

WooCommerce Products Custom Fields with Discount price

WooCommerce Products Custom Fields with Discount price. /***********************my custom code******************/ // Add save percent next to sale item prices. add_filter( ‘woocommerce_sale_price_html’, ‘woocommerce_custom_sales_price’, 10, 2 ); function woocommerce_custom_sales_price( $price, $product ) { $percentage = round( ( ( $product->regular_price – $product->sale_price ) / $product->regular_price ) * 100 ); echo $price . sprintf( …

Read More »
4

March 26, 2017

Clear all

Warning: Cannot modify header information - headers already sent by (output started at /home/u797196687/public_html/wp-content/themes/sushil/header.php:27) in /home/u797196687/public_html/wp-content/plugins/wppush-push-notifications/WPPush.php on line 274