It is very important to integrate social media buttons into the product page; in fact, it is from this page that the user can share the product with his or her friends, increasing the possibility of purchase of the product.
To do this, we will use the excellent free service, AddThis. AddThis is a great ready-to-use plugin that allows you to add links to the social networks. You can either utilize the service for free, or you can register and create an account that will allow you access to advanced statistics.
Now we will perform the following steps to integrate the version without an account:
You can integrate Add This manually, or you can use one of the premade extensions.
It is easy to install the extension because you can install a simple Magento module; however, we will learn how to integrate it manually, so you can distribute it with your theme without additional extensions. In fact, sometimes you cannot distribute the theme with third-party extensions because of license terms.
Choose the second option, the one with the large icons, under the Select style section, as you can see in the following screenshot:
<div class="social-sharing"> <!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style addthis_32x32_style"> <a class="addthis_button_facebook"></a> <a class="addthis_button_twitter"></a> <a class="addthis_button_pinterest_share"></a> <a class="addthis_button_google_plusone_share"></a> <a class="addthis_button_compact"></a><a class="addthis_counter addthis_bubble_style"></a> </div> <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script> <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5023e72a4129d9cf"></script> <!-- AddThis Button END --> </div>
3.144.17.91