HostOnNet Blog

How to replace add to cart button with enquiry in WooCommerce

First step is to deactivate the add to cart button by placing the following code to theme’s functions.php.

add_filter( 'woocommerce_is_purchasable', false );

Then install Product Enquiry for WooCommerce plugin.

How to replace add to cart button with enquiry in WooCommerce


After activating the plugin, go to Product Enquiry and update the settings as you need. I changed Enquiry Button Label to Make an enquiry.

How to replace add to cart button with enquiry in WooCommerce


Thats all. Check my Product page below.

To change the button color, I added the following code in wp-content/themes/YOUR_THEME/style.css

#enquiry .contact{
    background-color: #000/*add your color here*/;
    color: #fff;
}

About Sibi Antony

Bootstrap and Android LOVER. I've been creating things for the web for over 10 years, from the period of flash and table based layout web sites till mobile and tab friendly web sites.
Posted in Wordpress