• hi,
    i have piece of code on my website which when i click on it and it will send message directly to my friend’s whatsapp number along with the link of current page and a line of subject ..

    i want to add that code below product summary on woocommerce product page

    can any one help me out?

    thanks in advance

    here is the code

    <!DOCTYPE html>
    <html>
    <body>

    (anchor tag (a)) class=”btn btn-social-icon btn-whatsapp” href=”javascript:window.location=waCurrentPage();”>Link(anchor tag close)

    <p id=”demo”></p>

    <script>
    waCurrentPage = function() {
    return encodeURI(“whatsapp://send?phone=+919999999999&text=Check this out: ” + ‘https://&#8217; + window.location.hostname + window.location.pathname);
    }
    </script>

    </body>
    </html>

    i have written anchor tag instead of a as it was directly showing html link instead of code

    thanks in advance

    • This topic was modified 7 years, 4 months ago by moin12.
    • This topic was modified 7 years, 4 months ago by moin12.
  • The topic ‘want to add html/jscript code on woocommerce product page below product summary’ is closed to new replies.