Home Forums WoodMart support forum Adding ‘Order via WhatsApp’ instead of ‘Add to Cart

Adding ‘Order via WhatsApp’ instead of ‘Add to Cart

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #570224

    ceyhun.byrk
    Participant

    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?

    #570228

    ceyhun.byrk
    Participant

    Additionally, the catalog mode is not working for me 🙁 Even though I have activated it, the prices are not hidden.

    #570243

    ceyhun.byrk
    Participant

    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.

    #570418

    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.

Viewing 4 posts - 1 through 4 (of 4 total)