Untitled
unknown
plain_text
7 months ago
419 B
6
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