Addify Flash Sale! Get Flat 30% Off on all Addify Extensions . Hurry Up and Save Big! Use Coupon Code: Flashify30.

How to Add a Call for Price Button in WooCommerce

The lack of price information when searching for any product on the Internet may have irritated many buyers. Merchants have long employed a method known as “Call for Price”. As the name suggests, customers are encouraged to call the store to inquire about the pricing of a product. Learn how to enable WooCommerce’s Call for Price button by following the methods given below:.

Add a Call for Price Button in WooCommerce – Methods

Call for Price Button can be added to your WooCommerce by two basic methods: 

  1. WooCommerce Call for Price by Addify
  2. Add a Call for Price Button in WooCommerce Programmatically

Comparison of Both Methods

FeaturesProgramming SolutionCall for Price by Addify
Show call for price for specific user rolesNoYes
Show call for price on specific productsNoYes
Show call for price on specific categoriesNoYes
Customizable button with url redirectionNoYes
Hide add to cart ButtonYesYes
Hide PriceYesYes

WooCommerce Call for Price by Addify

WooCommerce Call for Price Plugin allows you to easily hide price and add to cart button and replace it with a custom text and link (i.e. Call for Price). The settings can be applied to specific user roles, products, and categories. See below details for its quick installation and configuration. 

Installation

  1. To install, look for a .zip file from your WooCommerce account and begin downloading.
  2. On the WordPress Admin Panel, go to Plugins and click on Add New. Upload your plugin here by choosing the downloaded file.
  3. Click on Install Now and then Activate the WooCommerce Call for Price plugin.

Setup and Configuration

As you activate the plugin, you can view the new “Call for Price” section under the WooCommerce admin panel. Click here to configure.

Enable for Specific User Roles and Pages

WooCommerce Call for Price plugin comes with a functionality that enables call for price button for specific user roles and pages on your WooCommerce store. For instance, you can enable it for registered or non-registered users or both considering your requirements. This plugin allows a call for a price button on all or specific product pages or categories. 

woocommerce call for price

Replace Price and Add to Cart with Customizable Text or Link 

With this plugin, you get the option to hide the price and add to cart and replace them with a customizable text or link. You can add your own text, such as “Call for a Price.” It’s also possible for the Add to Cart button to be replaced with a customized text, link, or contact form.

woocommerce call for price

Display Call for Price for Specific Products and Categories

Using the WooCommerce Call for Price plugin, you can hide product prices from the products and categories pages. Customers can ask about the product’s price and place an order by contacting the store owner via any of the methods.

woocommerce call for price

Method #2: Add a Call for Price Button in WooCommerce Programmatically

Let’s take a look at the program-based implementation of Call for Price Button in WooCommerce.

 // Replace loop page add to cart button with call for price button

add_action( 'init', '_change_loop_add_to_cart', 10 );

function _change_loop_add_to_cart() {

remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );

add_action( 'woocommerce_after_shop_loop_item', 'call_for_price_button', 10 );

}

function call_for_price_button() {

printf( '<a href="#" class="button call-for-price-button">%s</a>', esc_html__('Call for Price', 'text-domain') );

}

add_action(

'woocommerce_simple_add_to_cart',

function(){

remove_action( 'woocommerce_simple_add_to_cart', 'woocommerce_simple_add_to_cart', 30 );

add_action( 'woocommerce_simple_add_to_cart', 'replace_add_to_cart_text',30 );

},

1 );

add_action(

'woocommerce_variable_add_to_cart',

function(){

remove_action( 'woocommerce_single_variation', 'woocommerce_single_variation_add_to_cart_button', 20 );

add_action( 'woocommerce_single_variation', 'replace_add_to_cart_text',30 );

},

1 );

function replace_add_to_cart_text(){

return sprintf( '<a href="#" class="button call-for-price-button">%s</a>', esc_html__('Call for Price', 'text-domain') );

}

Final Thoughts

Call for Price plugin can be used to hide prices for products that fall inside a certain price range or other filter, as well as boost client involvement by allowing them to directly contact the vendor. We hope that after reading this guide, you have a better understanding of how to set up this feature in your WooCommerce store. For further queries, do not hesitate to contact our support team.

Avail The Opportunity

Subscribe to Our Updates and Newsletters.