Campaign Manager M2 - Installation


In order to install  any extension for Magento 2, the first thing to do is to create the folder ‘code’ under ‘app’ in Magento 2 root category, similar to the screenshot below.

In Magento 2, extension files are placed in one module folder so there is no need to copy files to different directories like it used to be in Magento 1.

These are the steps is to install the extension: 


Go to the Magento2 base directory.

cd /your/magento/install/path

Install the required facebook/graph SDK by typing this command:

composer require facebook/graph-sdk

Change the directory to the extensions' main directory.

cd /your/magento/install/path/app/code<br>

Extract the files into the CampaignManager folder.

mkdir /your/magento/install/path/app/code/Cminds/CampaignManager<br>
cp /path/to/your/files/* /your/magento/install/path/app/code/Cminds/CampaignManager/<br>

After the CampaignManager extension is in place:

cd /your/magento/install/path<br>
php bin/magento setup:upgrade

Enabling the Extension


After those steps, you should see that our module is enabled. 

To check the list of enabled modules, you can:

  • Run the command 'app/etc/config.php'  in the console command; or,
  •  Go to Stores­ → Configuration → Advanced → Advanced  in the Admin Panel

Flushing The Cache

The last thing that you need to do is to flush Magento cache. You can do this in two ways:

  • Running in console command the command ' php  bin/ magento  cache :clean ':
  • php bin/magento cache:clean
  • In the Admin Panel, please go to System → Cache Management, select all elements and click 'Flush Magento Cache'.
  • 2016-03-29_1036.png

Compiling and Deploying

rm -rf var/di
For Magento 2.0.x, 2.1.x: rm -rf var/generation  For Magento 2.2.x: rm -rf generated/*
php bin/magento setup:di:compile
rm -rf pub/static/*
php bin/magento setup:static-content:deploy  In Magento 2.2.x depends of the mode in which Magento is running it is possible that it will be required to add "-f" flag on the end of the above command.
chmod -R 777 pub/static
For Magento 2.0.x, 2.1.x: chmod -R 777 var  For Magento 2.2.x: chmod -R 777 generated chmod -R 777 var

Get more information about the  Campaign Manager Magento 2 Extension

Find other Magento products at the CreativeMinds Magento Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center