Home » WooCommerce: POA / Call for Price @ Single Product

WooCommerce: POA / Call for Price @ Single Product

by Tutor Aspire

You might want to show a “POA” price and/or a “Call for Price” button when you have a product with an empty price.

Many businesses require this, mostly real estate and wholesalers. So let’s see how it’s done 🙂

Price is now “POA” and a “Request Price” button shows @ WooCommerce Single Product Page

PHP Snippet: Display “POA” & Enquiry Button If Price Empty @ WooCommerce Single Product Page

Before taking a look at the snippet, make sure your “POA” product has no price (regular and sale price). Also, please reference to this other article if you want to add some Javascript to show/hide a Contact Form 7: https://businessbloomer.com/woocommerce-show-inquiry-form-single-product-page-cf7/

 * @snippet       Display "POA" for blank price products @ WooCommerce Single Product
 * @how-to        Get tutoraspire.com FREE
 * @author        Tutor Aspire
 * @testedwith    WooCommerce 3.8
 * @donate $9     https://www.tutoraspire.com
add_filter( 'woocommerce_empty_price_html', 'tutoraspire_poa_and_enquiry_cf7_woocommerce' );
function tutoraspire_poa_and_enquiry_cf7_woocommerce() {
   $html = '
'; $html .= ''; $html .= ''; return $html; }

You may also like