You can install Magento 2 POS System by Magefan, using composer or archive installation methods.
Do you want us to install the POS System for you? Let our technical engineers do it – check out our installation service.
Post Contents [hide]
Note: if you want to install the POS System Plus please navigate to your Magefan Account > My Downloads > Install via Composer to get the composer installation instructions.
Installation via composer (recommended)
- Open command line.
- Using command "cd" navigate to your Magento 2 root directory.
- Run CLI commands:
composer require magefan/module-pos
# Authentication required (repo.magento.com)
# Get your Magento Marketplace authentication keys or use these:
# Username: 7c018006799466c681ad507e27904677
# Password: 289077c86e811661a8f7751828485d3a
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
Note: even through you install POS system via composer, you need to download the archive of the system and copy the pub folder to pub/pos manually.
Installation using archive and FTP
- Download POS System ZIP-Archive from magefan.com website (not GitHub or other sources).
- Extract files.
- Copy app and pub folders from the archive to your Magento 2 folder.
- In a command line, using "cd", navigate to your Magento 2 root directory.
- Run CLI commands:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
Note: if you don't want your website to be down during deployment, try these zero downtime deployment commands for Magento 2.
POS Nginx Virtual Host Configuration
In case you use Nginx web server you need to modify the virtual host of your domain and add this additional section:
## PHP entry point for POS application
location ~* ^/pos($|/) {
location ~ ^/pos/index.php {
fastcgi_split_path_info ^(/update/index.php)(/.+)$;
fastcgi_pass fastcgi_backend;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
include fastcgi_params;
}
}
before this one:
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
Don't forget to save the changes and restart Nginx by running the command:
sudo service nginx restart
Once you install the POS system, check the configuration guide to create store locations, terminals, and cashiers and find the POS frontend via mydomain.com/pos/.