Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #292018

    Hi,

    It is not a enfold question, but is it possible to only show the prices when somebody is logged in in Woocommerce ?

    #292024

    Hmm, looking for days, but if found out myself :)

    add_filter(‘woocommerce_get_price_html’,’members_only_price’);
    function members_only_price($price){
    if(is_user_logged_in() ){
    return $price;
    }
    else return ‘Login or Register to see price!’;
    }

    You can close topic

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Woocommerce, price only when user login’ is closed to new replies.