Answer the question
In order to leave comments, you need to log in
How to add sale inscription when WooCommercy prices go down?
How to add sale inscription when WooCommercy prices go down?
Answer the question
In order to leave comments, you need to log in
And that's all I did)
if( $product->is_on_sale() ) {
echo 'Sale!';
}else{
echo '';
}
Earned.
in function.php
cea with and without discount
function the_dramatist_price_show() {
global $product;
if( $product->is_on_sale() ) {
return $product->get_sale_price();
}
return $product->get_regular_price();
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question