Manual Installation
Prepare to install
Installation requires Marketplace module. It’s our module that automates a bunch of complex commands required to run prior and after module installation, and provides easy to use module installer.
composer require swissup/module-marketplace &&\
bin/magento setup:upgrade --safe-mode=1
Prepare directory for downloaded archives and register it in composer.json
:
mkdir -p vendor/swissup/artifacts &&\
composer config repositories.swissupartifacts artifact $(pwd)/vendor/swissup/artifacts
Download and unpack archive
- Open your account page at the site where you purchased the module and download it:
-
Upload this archive to the
<magento_root>
directory, and then unpack it to the<magento_root>/vendor/swissup/artifacts
folder:unzip swissup.<module-version>.zip -d vendor/swissup/artifacts
- Now, proceed to install section.
Install
When Marketplace module is installed you can proceed with installation in teminal:
composer require swissup/fblike &&\
bin/magento setup:upgrade --safe-mode=1 &&\
bin/magento setup:di:compile &&\
bin/magento setup:static-content:deploy
Add Like Button To Catalog
add code to any place in catalog list.phtml:
<?php echo $this->helper('Swissup\Fblike\Helper\Like')->getProductLike($_product); ?>
That’s all. Now you need Create a New Facebook App and configure extension in admin panel Configuration