View Single Post
  #8  
Old 12-04-2017, 10:21 PM
 
anandat anandat is offline
 

X-Adept
  
Join Date: Jan 2004
Posts: 914
 

Default Re: How to add whatsapp share button ?

Quote:
Originally Posted by elmirage001
Maybe...
Code:
<a href="whatsapp://send?text={$http_location}{$smarty.server.REQUEST_URI}" data-action="share/whatsapp/share">Share via Whatsapp</a>
Thanks for the reply.
This code is creating html url but it's generating directory name 2 times.
But good thing is that following code is working perfectly

Quote:
<a href="whatsapp://send?text=https://www.yoursite.com{$php_url.url}" data-action="share/whatsapp/share">Share via Whatsapp</a>
__________________
X-Cart: 4.7.7 LIVE
Skin:Ultra by xcartmods.co.uk
X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9)
---------------
Server: Linux
php: 5.3
mysql: 5.0.89
----------------
Reply With Quote