Whatsapp is a very important application where we can chat, call or share our images videos or important links so in this tutorial we are going to learn how to add a code that enables visitors to share Shopify products on WhatsApp.
Add this code in product.liquid file where you want to add share button
<a href="whatsapp://send?text=Check out this {{ shop.url | escape }}{{ product.url | escape }}&media={{ share_image | img_url: '1024x1024' }}&description={{ share_title | url_param_escape }}" class="wshare"> Share
on Whatsapp </a>
You can change the highlighted text according to you
Note: This code is not work in desktop view. It will be work in mobile if whatsapp is installed.
Try Shopify for free, and explore all the tools and services you need to start, run, and grow your business.
Share shopify product on whatsapp
Reviewed by Navjeet Singh
on
September 07, 2016
Rating:
No comments: