Tagged: woocommerce
Hi,
It is not a enfold question, but is it possible to only show the prices when somebody is logged in in Woocommerce ?
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