fanplayr
Fanplayr Magento 2 Integration

Updated 11 days ago

Integrating Fanplayr with your Magento 2 Store

Installing extensions for Magento 2 is a little more complex than with Magento 1.x and should be done by your developer. It involves having access to the command line to your website host, or development environment.

Download the Extension

Currently we suggest downloading the extension directly from here:

https://s3-us-west-1.amazonaws.com/fanplayr-magento/fanplayr_smartandtargeted-1.0.1.zip

You can also find the extension on the Marketplace, purchase it using your linked account, and then download it. The Marketplace page can be found here:

https://marketplace.magento.com/fanplayr-smartandtargeted.html

Unzip to a temporary directory

Unzip the contents of the extension to a temporary directory. Move, or upload, the app _and _skin directories to the root directory of your Magento 2 installation. You don't need the package.xml. Note that these directories already exist in your Magento 2 installation, but don't worry, subdirectories will be copied.

Disable the Cache

Log into your Admin area, then go to System / Tools / Cache Management. Select all cache types, choose "Disable" from the drop down list, and then Submit.

Console: Run Upgrade

Even though you have copied the extension files to your Magento 2 installation they will not be seen until the system scans for them. To do this you will locally you will need to open your console, or on a remote machine you will need terminal access.

Once you're in the terminal go to the root of your Magento 2 installation. Then run the following command:

php ­bin/magento setup:upgrade

This will update the app/etc/config.php file with details of your new module.

This process may ask you to rerun Magento compile. If you are not in a development environment you can do this with the following command:

php ­bin/magento setup:di:compile

If you have memory errors runs as follows

php -d memory_limit=-1 ­bin/magento setup:di:compile

Add your Fanplayr Account Key

In your Admin area go to Stores / Settings / Configuration. You should now see a new option in the menu to the left, Fanplayr / Smart And Targeted.

You can now enter the Account Key given to you by your Fanplayr account manager. Make sure you click Save Config.

Re-enable the Cache

Log into your Admin area, then go to System / Tools / Cache Management. Select all cache types, choose "Enable" from the drop down list, and then Submit.

Testing installation

You can see if Fanplayr is tracking by going to your store, opening the Javascript Console, and checking that the "fanplayr" variable exists.