- $USD
- English (United States)
- Hire an Expert
- Get Support
A minor change to a single button could change the entire response of the web users towards your products. A change to add to cart button to an enquiry form is one such example.
The reason for this change is businesses that are not only looking for direct sales but also paving the path for having fruitful interactions with interested buyers. These interactions are only possible when the user can inquire about your products and services.
These needs make businesses change the add to cart button into an enquiry button.
You can change add to cart to enquiry buttons in WooCommerce in these two ways:
- Custom Coding
- Dedicated Plugin
Let’s discuss each of these methods in detail in the following paragraphs of this blog.
Steps for Adding WooCommerce Enquiry Instead of Add to Cart With a Plugin
To let your potential buyers inquire about the products they are interested in, you can choose the product enquiry form for WooCommerce.
To make the plugin work, follow these steps:
Download and Install The Plugin
First and foremost, it is to get the plugin installed. To do so, follow these steps.
- Download the product enquiry form plugin’s .zip file from your WooCommerce account
- Now go to the WordPress Admin > Plugins > Add New and upload the downloaded zip file
- From here, click on the install option, and after the complete installation, click on Activate
Configuration
Being a customizable plugin, you can manage the settings to make the product enquiry button instead of the add to cart function according to your defined rules.
The configuration settings consist of multiple intermediary settings for both the display and working of the product enquiry instead of add to cart button.
General Settings
In the general settings, you can make the following changes:
- Enable or disable the enquiry form plugin
- Enable or disable inquiries about the cart for users
- Choose for what user types you want to enable the enquiry button
- Choose all the pages or specific pages to display the enquiry button instead of add to cart
- Choose the products and categories for which you want to display the enquiry button
- Choose the positioning of the enquiry button
- Hide the product price
- Hide the add to cart button
Display Settings
Manage the display settings of the product enquiry button that you will add instead of add to cart button.
So these are a few display changes:
- Style the enquiry button
- Customize the button text
- Manage enquiry button radius and padding
All the other display settings are as follows:
- Enquiry Button Colors Settings
- WhatsApp Button Settings
- WhatsApp Button Color Settings
- SMS Button Settings
- SMS Button Color Settings
Popup Display Settings
A popup form will be displayed for the user pressing the enquiry form button. You can make changes to the display of the popup. From changing the text to the headings and background color, you can manage all the settings here.
- Display Settings
- Popup Heading Colors Settings
- Popup Tab Colors
- Submit Button Colors Setting
Email Settings
Manage all the settings related to the email that the user will receive for inquiring about the products they are interested in.
The settings are:
- Recipient Email Addresses
- CC Email Addresses
- Send enquiry email to admin
- Enter the default subject
- Send an email copy to the user
- Add a thank you message you want to display after each product inquiry
WhatsApp Settings
When you change the add to cart button with an enquiry button in WooCommerce, you let the user choose multiple channels to enquire. And one of the channels is WhatsApp, with all these settings to manage.
- Enable the WhatsApp inquiry button
- Set a default message for users contacting on WhatsApp
- Display the user name in a popup
- Display the number in the popup
- Enter the number of the WhatsApp agent; you can add more numbers by clicking on “Add Another
SMS Settings
Apart from inquiring about the products through WhatsApp, the user can also send you an SMS.
The settings are the same as the WhatsApp settings.
Manage Product Enquiries
Once the inquiries are submitted, the admin can view them and respond to them accordingly. To manage these inquiries, go to WooCommerce > Product Enquiry Forms; here you will see all the inquiries with the customer names and all the other details.
The details include:
- Customer Name
- Date
- Product
- Assigned To
- Status
Changing Add to Cart To Enquiry Buttons In WooCommerce Through Code
Apart from a plugin, you can opt for coding to change the add to cart button to enquiry form in WooCommerce.
Coding is tough and demands skills and abilities, and you should only proceed with one such method when you have the coding skills. Changing the add to cart button to enquiry button is not about changing the text; it is more about the functionality.
So to change the functionality, here is the code that you need to add to your function.php file:
remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
add_action( 'woocommerce_single_product_summary', 'custom_enquiry_button', 30 );
function custom_enquiry_button() {
$contact_page_url = get_permalink( get_page_by_path( 'contact' ) );
echo '<a href="' . esc_url( $contact_page_url ) . '" class="button enquiry-button">Enquire Now</a>';
}
Code vs. Plugin: Which One To Choose?
If you are ever given a choice between these two, we recommend you choose a plugin to add an enquiry button instead of an add-to-cart button.
Here are the reasons why you must give preference to a plugin:
- With a WooCommerce product enquiry form plugin, the job is made much easier
- The plugin comes with a user-friendly interface
- A plugin is more cost-effective than coding
- Code is hard and risky to maintain compared to a plugin
- A plugin is comparatively reliable
- You can extend the functionality according to your needs and manage settings for the plugin to work accordingly
- The plugin comes with a user guide that guarantees the support needed
Ready to Make This Change?
There is a purpose behind changing the add to cart button to enquiry form and the most prominent one is to improve customer engagement and sales. If you want to maximize the engagements of your web users that eventually lead to a sale, then you must bring about one such change. Make sure to bring this change in the add to cart button with an inquiry button in WooCommerce only with the help of a plugin.