Hey,
Your plugin is amazing!
1) There is any variable I can use that will be replaced with the current page url? - for example if I choose "Whatsapp Chat" I would like to customize the message that I can add a variable that will be replaced with the current url, etc.
2) If I choose the option of "social sharing" and then "share on whatsapp" there is a text when I share it that I cant customize or change. What can I do?

Thanks,
Yotam

  • Castor replied to this.
  • Hi yotkes ,

    1. This is not currently supported. The way you could do this at the moment is by using the (premium) javascript click action. You could gather the current page url there and then send the user to whatsapp, something like this:
      const url = document.location.href;
      const phoneNumber = "1234567890";
      const body = `Hi! I just came from ${url}`;
      window.open(`https://wa.me/${phoneNumber}?text=${body}`);
    2. This is correct, the standard action cannot be changed as of right now. The action basically works as a link to the following page: https://api.whatsapp.com/send?text="My text". So, you could just select the button action URL (most top action) and enter this link with your own custom text.
    6 days later

    Hi yotkes ,

    1. This is not currently supported. The way you could do this at the moment is by using the (premium) javascript click action. You could gather the current page url there and then send the user to whatsapp, something like this:
      const url = document.location.href;
      const phoneNumber = "1234567890";
      const body = `Hi! I just came from ${url}`;
      window.open(`https://wa.me/${phoneNumber}?text=${body}`);
    2. This is correct, the standard action cannot be changed as of right now. The action basically works as a link to the following page: https://api.whatsapp.com/send?text="My text". So, you could just select the button action URL (most top action) and enter this link with your own custom text.