Multi-Language Alternate Hreflang SEO tags (M2)

You can start the installation by downloading the extension package (.zip) file from your Magmodules or Marketplace dashboard-account under my downloads and follow the installation instructions below.

Note: Creating a backup is recommend and will allow you to revert back to a previous version of your Magento® files if something unexpected happens during the extension installation. If this is your first backup, take additional care to verify that the backup is both complete and functional by performing a trial run of your recovery process.

1. Enable Cache
Enable the Magento Cache using the located in System > Cache Management.

2. Upload Files
As the folder structure differs from the Magmodules store and the Marketplace dashboard this step is defined in two parts. The Magmodules zip file contains the app/code/Magmodules/AlternateHreflang structure and the Marketplace zip file has only the contents of this folder.

2 A. Upload Extension Files from the Magmodules .ZIP file
Extract the extension package ZIP-file (using Winzip, WinRar, etc) and upload the app folder to the root directory of the Magento® installation.

All folders should match the existing folder structure.
If one of our extensions is already installed and you're updating it, make sure to overwrite the existing files of the extension. 

2 B. Upload Extension Files from the Marketplace .ZIP file
Create a "Magmodules/AlternateHreflang" folder in app/code/ directory.

Extract the extension package ZIP-file (using Winzip, WinRar, etc) and upload the files to the app/code/Magmodules/AlternateHreflang directory of the Magento® 2 installation.

Note: The folders structure is case-sensitive so check whether they have been taken over correctly.

All folders should match the existing folder structure. If one of our extensions is already installed and you're updating it, make sure to overwrite the existing files of the extension. 

Merge Extension files
For Mac OS users using Transmit. If you are installing the extension in a local environment or you are using Transmit, make sure to merge and not to replace the existing folder's contents. Otherwise, your app older will be gone.   

3. Connect to your Magento® Webserver using SSH
3 A. Connect
Run the following command in the terminal and enter user password (please skip this step if you're installing expansion on the local machine):

ssh username@domain.com

3 B. Locate The Root
Change your current directory to Magento 2 web root directory running this command:

cd /full_path_to_magento2

3 C. Start Setup
Start the setup of the Hreflang extension by running this command:

php bin/magento module:enable Magmodules_AlternateHreflang
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

Now you've entered the right commands into the SSH client the extension will be installed and deployed.
It can take a few minutes untill all the files are succesfully transfered and deployed in your Magento® 2 Store.



4. Installation Completed
When completed the extension is succesfully installed in your Magento® 2 Store and ready to use.

Navigate to Stores > Configuration > Magmodules > Alternate HREF Lang to configure and use the extension.