Need a unique gift idea?
A Pastebin account makes a great Christmas gift

WooCommerce - Set a nil-price message

lorro May 21st, 2015 (edited) 224 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. <?php
  2.   // code goes in functions.php for your child theme
  3.   // output a message if the product price is nil
  4.   add_filter('woocommerce_empty_price_html', 'nil_price_message');
  5.   function nil_price_message() {
  6.     return 'Ring for price';
  7.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand