Looking for help?
< All Topics
Print

I don’t want POS use sale price, sale price for website only

to do this requirement , you can add this snippet code to your theme/ functions.php or a snippets code plugin


add_filter('woocommerce_product_is_on_sale',function($on_sale, $current){
    
    global $op_session_data;
    if($op_session_data)
    {
        return false;
    }
    return $on_sale;
},10,2);
Table of Contents