If no price included display Text
-
Hello,
I just need a quick fix.
So I go WooCommerce > Products > Add new product > add a new External/Affiliate product
In the options I do not add any price. I would like on the main page and on all the other pages for it display a custom text i.e. “call for price”.
Here is the code i found:
add_filter('woocommerce_get_price_html','members_only_price'); function members_only_price($price){ if(is_user_logged_in() ){ return $price; } else return 'Call for Price!'; }
How can I modify it to do what I need to do?
Regards,
T
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘If no price included display Text’ is closed to new replies.