Untitled
unknown
plain_text
a year ago
419 B
14
Indexable
add_filter('woocommerce_tm_epo_price_compatibility', function($price, $product){
if ($product){
if ($product->is_on_sale()){
$price = $product->get_sale_price();
}
}
return $price;
}, 10000, 2);
add_filter('woocommerce_product_variation_get_price', function($price, $product){
if (is_product()){
if ($product->is_on_sale()){
$price = $product->get_sale_price();
}
}
return $price;
}, 10000000, 2);Editor is loading...
Leave a Comment