Untitled
unknown
plain_text
a month ago
419 B
3
Indexable
Never
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);
Leave a Comment