I run my woocomerce product updates via excel sheet uploads with over 10,000 products. However, with the sale price/promo price column, I have prices of 0.00, 0 and some blank.

I want a situation whereby when a product has a sale price of 0.00 it should only show regular price.

I used to use this function

function check_sale_price ($sale_price) {
    if ( empty( $sale_price ) ) {
    } else {
           return $sale_price;

However, this isn't working anymore.

Kindly help. Thanks in advance

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.