Created
January 12, 2012 01:40
-
-
Save mikejolley/1597957 to your computer and use it in GitHub Desktop.
WooCommerce - Replace '' with 'Call for price' when price is left blank
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This code should be added to functions.php of your theme | |
**/ | |
add_filter('woocommerce_empty_price_html', 'custom_call_for_price'); | |
function custom_call_for_price() { | |
return 'Call for price'; | |
} |
Works for Nitro theme
hi Micheal, your code works for me. Thank you. Can you help me if i want to add "href=tel:xxxxxxx" option on Call for price? how can i add it in this code...? will appreciate your help
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reverts to 0.00 when currency changed.
Is there a fix for this?