moin12
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
although i am a non-developer ,but still i tried this , but my whole website got crashed
add_action( ‘woocommerce_single_product_summary’, ‘whatsappdirect1’, 35 );
function whatsappdirect1() {
echo ‘<!DOCTYPE html>
<html>
<body>[anchor] href=”window.location=waCurrentPage();”>
[anchor-close]<p id=”demo”></p>
<script>
waCurrentPage = function() {
return encodeURI(“whatsapp://send?phone=+91999999999&text=Check this out: ” + ‘http://’ + window.location.hostname + window.location.pathname);
}
</script></body>
</html>‘;
}- This reply was modified 8 years, 10 months ago by moin12.
the link (hyper link is shown in above piece of code )
the code line for that hyperlink is
<a hrwef="window.location=waCurrentPage();">Link </a>hi i figured it out about woocommerce product page and email subject and mail body
Viewing 3 replies - 1 through 3 (of 3 total)