Adding ‘Order via WhatsApp’ instead of ‘Add to Cart
-
Dear Sir/Madam,
Hello, we are a furniture store. We do not want the prices of the products to be visible on our website. Instead of the ‘Add to Cart’ buttons, we would like to have buttons that say ‘Get Information via WhatsApp.’ How can we achieve this?
Additionally, the catalog mode is not working for me 🙁 Even though I have activated it, the prices are not hidden.
I have resolved the issue with the catalog mode. However, I still do not want the prices to be visible. Users should see the ‘Get Information via WhatsApp’ button instead of ‘Add to Cart.
Hello,
Try to add the following code in fucntion.php of the child theme to remove the prices.
add_filter( 'woocommerce_variable_sale_price_html', 'businessbloomer_remove_prices', 9999, 2 );
add_filter( 'woocommerce_variable_price_html', 'businessbloomer_remove_prices', 9999, 2 );
add_filter( 'woocommerce_get_price_html', 'businessbloomer_remove_prices', 9999, 2 );
function businessbloomer_remove_prices( $price, $product ) {
if ( ! is_admin() ) $price = '';
return $price;
}
Try to find a third party plugin to achieve more functionality.
https://woocommerce.com/products/order-on-whatsapp-for-woocommerce/
Best Regards.