Reputation: 31
add_filter( 'woocommerce_get_price_html','product_page_price_display', 9999, 2 );
function product_page_price_display( $price_html, $product ) {
$orig_price = wc_get_price_to_display( $product );
$price_html = wc_price( $orig_price + 10 );
return $price_html;
}
Upvotes: 1
Views: 107
Reputation: 31
add_filter( 'woocommerce_get_price_html' , 'product_page_price_display', 9999, 2 );
function product_page_price_display( $price_html, $product ) {
$orig_price = wc_get_price_to_display( $product );
$price_html = wc_price( $orig_price + 10 );
return $price_html;
}
Upvotes: 0