Facebook Like Button
Installation
For clients
There are several ways to install extension for clients:
- If you've bought the product at Magento's Marketplace - use Marketplace installation instructions
- Otherwise, you have two options:
- Install the sources directly from our repository - recommended
- Download archive and use manual installation
For developers
Use this approach if you have access to our private repositories!
cd <magento_root>
composer config repositories.swissup composer https://docs.swissuplabs.com/packages/
composer require swissup/module-fblike
bin/magento module:enable Swissup_Fblike
bin/magento setup:upgrade
Add Like Button To Catalog
Add code to any place in catalog list.phtml
<?php echo $this->helper('Swissup\Fblike\Helper\Like')->getProductLike($_product); ?>