- Get MageFlow extension with version number 2.0.0 or higher.
- Install MageFlow extension to at least 2 Magento instances
- Create Oauth consumers in Magento instances
- Connect source Magento instance to target Magento instance with MageFlow
- Read Ground Rules, start exchanging change items
Flush or turn off Magento caches before installation.
Step-by-step guide follows:
- Go to System / Web Services / REST – Roles
- Click “Add admin role”
- Give new role name “Administrators” and enter your admin password
- Under “Role API resources” set Resource Access to “All”
- Save role
- Go to System / Web Services / REST – Attributes
- Select user type Admin
- Set resource access to “All”
- Save
- Go to System / Permissions / Users
- Select your user
- Under “REST Role” check radio button by “Administrators”
- Save your user
- Go to System / Web Services / REST – Oauth Consumers
- Take note of Oauth consumer. It’s needed in step 2.
- Click “Add new”
- Give it a name “MageFlow”
- Click “Save”
Your target Magento instance is ready to be used with MageFlow now!
- Enter target Magento’s base URL to the field “Target base URL”. NB! Be sure to add the trailing /
- Copy-paste Oauth consumer keys from target Magento Oauth consumer (noted in step 1)
- Click “Save Config”
- Click “Connect to target Magento”
- You will be redirected to target Magento’s Oauth dialog. Click “Authorize” to give Mageflow access to resources of target Magento.
- Take a look at MageFlow extension configuration in source Magento and enable / disable all data types you want to have Change Items created for.
Your source Magento instance is now ready for sending some Change Items to the target Magento instance!
Here are a few Ground Rules when using MageFlow that should be followed in order to avoid headache caused by failed migrations or inconsistent data.
- Always be sure you have a recent backup of your Magento database before pushing data from MageFlow to that instance or pulling data from MageFlow to that instance.
- Always push the dependencies first to make sure your instances are up to date:
- Migrate websites / store groups / store views (short: W/SG/SV) before anything else to make sure you have W/SG/SV with correct MF GUID’s in all of your instances
- Migrate root category before migrating subcategories.
- Migrate attributes before migrating attribute sets or products.
- Keep migrations atomic (push or pull items one by one) whenever possible
- For example, create a new CMS page or save an existing one in source Magento. Now navigate to MageFlow / Send and find your Change Item under “CMS Pages”. Select “Push” from the Action dropdown on your item. A dialog for Change Item description appears. Give it a meaningful description like “Changed formatting of titles on page 1” and click OK. If the status of Change Item changed to “sent” then it’s sent to your target Magento.
Now it’s time to go to your target Magento and see if the Change Item is there. Go to target Magento admin and navigate to MageFlow / Inbox. Click “Apply” on your incoming Change Item to accept it and it will be applied to your target Magento.