Support » Plugin: Wayra - Click to Order or Chat » The plugin no longer opens the WhatsApp application

  • Resolved mairimweb

    (@mairimweb)


    I have several sites with the plugin installed and it is not working as it should, there are no options to check the address it calls to open the application.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Wayra Digital

    (@wayradigital)

    Hola, gracias por mensaje, vamos a revisar lo que comentas y subiremos la actualización correspondiente.

    ¿El problema te sucede al acceder desde un dispositivo móvil?

    Saludos!

    Juan Manuel
    Wayra Digital

    Thread Starter mairimweb

    (@mairimweb)

    That’s right, Juan, we tested in both modes, desktop and mobile, and in both cases it opens the WhatsApp website and not the application as it did before the last update.

    Plugin Author Wayra Digital

    (@wayradigital)

    Hi @mairimweb, we use this links based on device type:

    Mobile
    https://api.whatsapp.com/send?phone=

    Desktop:
    https://web.whatsapp.com/send?phone=

    But for proveer a solution for you, we add an extra filter, then you can force to use your preferer link:

    add_filter(‘wayra_coc_whatsapp_link’, ‘wayra_coc_custom_whatsapp_link’);
    function wayra_coc_custom_whatsapp_link( $link ) {
    return ‘https://web.whatsapp.com/send?phone=’;
    }

    Regards!

    Juan Manuel
    Wayra Digital

    Where I need to add above code because website links are not woking properly it only shows blank web.whatsapp.com. Not redirecting properly to whatsapp.

    • This reply was modified 2 weeks, 3 days ago by amitrawat01.
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.