Dear all,
i would like to create a whatsapp button which send a message with the characteristics of the visited page;
this is the code we have done :
import wixLocation from ‘wix-location’;
let url = wixLocation.url;
$w.onReady(function () {
// Go to WhatsApp when “whatshop” is clicked:
$w(“#whatshop”).link = “https://wa .me / 250782294484/?text= Hello Vuki. I would like to order the following product: url;”;
$w(“#whatshop”).target = “_blank”;
});
but i don’t know why, the URL is never called, either we put ", ', ( or {… can anyone help us to fix this ?
thanks a lot