dd2006
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] woocommerce put wa.me link instead of telThank you so much, this little script works regularly.
Forum: Plugins
In reply to: [WooCommerce] woocommerce put wa.me link instead of telThank you!
but I would like to make sure that the link can be clicked by me and that a chat opens with the customer and not the other way around and therefore what you suggested for which I thank you.
See this screenshot of the woocommerce order page to understand better.
https://snipboard.io/yqQUCa.jpg
thanks for any advice
Forum: Plugins
In reply to: [WooCommerce] woocommerce put wa.me link instead of telHello and thanks! but I would simply like to modify the page and insert it into a child or override in order to be able to make updates. Tell me what to write in here:
$phonewa = ” HERE “; // how i can insert the get number??
Forum: Developing with WordPress
In reply to: woocommerce put wa.me link instead of telThank you for your help and support
i create a posto in WooCommerce ForumForum: Developing with WordPress
In reply to: woocommerce put wa.me link instead of telThank you for your contribution
what I would like to do is add a code that duplicates the number, one with the “tel:” protocol and just below with the WhatsApp API protocol, but I can’t because I don’t know how to recover the clean number. I would like something like this to add this code:<?php $phonewa = "1234567890"; // how i can insert the number?? // remove spaces $phonewa = preg_replace('/[^0-9]/', '', $phone); // is no empity if (!empty($phone)) { // WhatsApp its no empity $whatsappLink = "https://api.whatsapp.com/send?phone=+$phonewa"; // show link echo "<a href='$whatsappLink'>dsend on WhatsApp</a>"; } else { echo "number empity"; } ?>
but I don’t know what to write in here to get the number:
$phonewa = ” HERE “; // how i can insert the get number??- This reply was modified 1 year, 5 months ago by dd2006.
Forum: Plugins
In reply to: [WooCommerce] WhatsApp on WooCommerceHello and thank you very much!!