- Magento Open Source 2.3.2 or later
- LS Central 14.02 or later
- LS Omni Server 4.2 or later
- Navigate to your magento2 installation directory and run
composer require "lsretail/lsmag-two"
- Run
composer update
to install all the dependencies it needs. - Once done, you will see the list of our LS retail modules in disable section once you triggered the
php bin/magento module:status
command from your Magento 2 CLI and lsretail folder in the vendor directory. - To enable all our modules, run command from command line,
php bin/magento module:enable Ls_Core Ls_Omni Ls_Customer Ls_Replication Ls_Webhooks
- Set the base url of Omni by using this command
php bin/magento config:set ls_mag/service/base_url http://yourOmnihostname/LSOmniService
- Run
php bin/magento omni:client:generate
to generate all the files required for the communication with omni. - Run
php bin/magento replication:generate
to generate all the files required for replication. followed byphp bin/magento setup:upgrade
andphp bin/magento setup:di:compile
from Magento 2 instance so that it can update the magento2 database with our modules schema and interceptor files. - Once done, you will see the list of our modules by running
php bin/magento module:status
which means our module is now good to go. - To check the commands available for our module run 'php bin/magento' from the command line, you will see all the commands available for our extension.
- To test the connectivity to Omni server, run
php bin/magento omni:client:ping
to test the connection. If Ping return successfully, then you can procedd with next steps. - Once done, you will see all the new tables created in your Magento 2 database with prefix
ls_replication_*
- Next thing is to set configurations of Nav store and Hierarchy from backend to replicate data, to do so, navigate to Stores->Configuration->LS Retail->General Configuration, and choose the store and Hierarchy code to replicate data. Make sure you do all the configurations which are required on the Omni server for ecommerce i-e disabling security token for authentication.
- If your server is setup for cron, then you will see all the new crons created in the
cron_schedule
table if not, it means your server is not setup to schedule cron, to trigger the cron manually,run `php bin/magento cron:run from command line. - To Trigger the cron manually from admin panel, navigate to LS Retail -> Cron Listing from the left menu and click on the cron which needs to be run.
- To see if the data is replicated in the Magento completely or not, you can navigate to any Replication job from
LS Retail -> Replication
Status and there we can see the status withProcessed
orNot Processed
in the grid.