add_filter( 'wdp_get_product_price', function ( $price, $product, $price_mode, $item_meta ) { if ( $product->is_on_sale( 'edit' ) ) { if ( 'sale_price' === $price_mode ) { $price = $product->get_sale_price( '' ); } elseif ( 'discount_sale' === $price_mode ) { $price = $product->get_sale_price( '' ); } else { $price = $product->get_regular_price( '' ); } } else { $price = $product->get_price( '' ); } return $price; }, 10, 4 );
Booster Plus, by Algoritmika Ltd Print
Created by: Alex Prokaev
Modified on: Fri, 6 Sep, 2019 at 4:05 PM
Did you find it helpful? Yes No
Send feedbackSorry we couldn't be helpful. Help us improve this article with your feedback.