01. How to synchronize offline to online ?
Pre-Requirements
- – ROOT/storage/logs/sql.txt [check that this file is exists and writable]
Follow this steps
- 1st : Copy offline script to online server
- 2nd : Copy/Import offilie database to online server
- 3rd : Change config.php as the following
- 4th : define(‘SYNCHRONIZATION’, true); in config.php
- 5th : define(‘SYNCSERVERURL’, ‘http://remotemodernpos/sync.php’); [adjust as your server configuration] in config.php
- 6th : Make sure storage/logs/sql.txt file is exist and writable
- 7th : Crate a schedule task / cron job:
C:/xampp/php/php.exe -f D:/www/allitbd.com/cron.php PUSHSQLTOREMOTESERVER How to?
***Note: C:/xampp/php/php.exe and D:/www/modernpos/cron.php [will be changed according to your server configuration]
02. How to create a cron job / Schedule task ?
Follow this steps:
- Run > Task Scheduler
- Create Task
- General
- Name = MPOSSynchronization
- Run Wheather user is logged on or not [checked]
- Do not store password [checked]
- Run with highest privileges [checked]
- Hidden [checked], configure for [select as your need]
- Triggers
- New Daily Repeat task every 1 minutes
- OK
- Actions
- New Action = Start a program Program/Script = C:/xampp/php/php.exe [change as your need] Add agruments(optional) = -f D:/www/modernpos/cron.php PUSHSQLTOREMOTESERVER
- click on OK
- click on OK
- Right click on The Task and click on RUN > Status will be changed to Running
03. How to backup database automatically ?
Follow this steps
- First: Open the config file at root: config.php.
- Adjust the value of DIR_BACKUP as your need, by default it is poinging to storage/backups directory…
- define(‘DIR_BACKUP’, DIR_STORAGE.’backups/’);
- Note: It’s recommended to shift the storage directory to another location, i.e. if you have installed the system under D://www/modernpos then the storage directory can be located at D://www/storage
- Second: Crate a schedule task / cron job, How to?
- C:/xampp/php/php.exe -f D:/www/allitbd/cron.php DBBACKUP
- Note: C:/xampp/php/php.exe and D:/www/modernpos/cron.php [will be changed according to your server configuration]
04. How to restore database ?
Follow this steps
- Dashboard > System > Backup/Restore
- Click on restore tab
- Select your database
- Click on Restore.
05. How to solve datatable warning ?
Follow this steps
- Open the config file at root: config.php
- Change the value of define(โSUBDIRECTORYโ, โโ);
- Prodvide the subdirectory name: define(โSUBDIRECTORYโ, ‘YourFolderName’);
- define(โSUBDIRECTORYโ, ‘YourFolderName’);
06. How to add a new language ?
Follow this steps
- Dashboard > System > Language > Add New Language
- Visit the page that you want translate.
- After visit that page all language will add that new language section.
- Now click on translate button beside of each language key
07. How to add a POS printer ?
Follow this steps
- Dashboard > Settings > Printer > Add New Printer
- Give the all information
- Name: Give the title of your printer(Just name)
- Type: Select the network type
- Character per line: give the number of charcater that will print in a line on invoice
- IP Address: Provide the IP address of your printer like 192.168.223.501
- IP Address: Port of your printer use. (Most printer uses 9100 port)
- Click on Save
- After adding a printer go to store settings and select POS printer and choose print will be automatically or not.
08. How to customize invoice receipt template ?
Each template has two parts (I)Content [contains HTML markup with template tags] (II) CSS [For style].
- Dashboard > System > Receipt Template > Template list
- Update HTML part & css as your wish.
09. How to use Template tags & Where i will get template tag ?
- Dashboard > System > Receipt template > scroll down > Here you will get all template tags
- You must wrapp template tag with double curly braches, i.e. {{ store_name }}
10. How to use loops ?
- Items Loop Tags. Usage:{{ items }} {{ sl }} {{ /items }}
- Return items Loop Tags. Usage:{{ return_items }} {{ sl }} {{ /return_items }}
- Payments Loop Tags. Usage:{{ payments }} {{ sl }} {{ /payments }}
- Taxes Loop Tags. Usage:{{ taxes }} {{ sl }} {{ /taxes }}
11. Why image is not show in product ?
- Open the config file at root: config.php
- adjust filemanager directory/folder and filemanger URl
12. How to reset data ?
- Dashboard > Sytem > Data Reset
- Check store from store list.
- Click on “Yes” for reset data of selected store
13. How to import product ?
The first line in downloaded .xls file should remain as it is. Please do not change the order of columns. Please make sure the (*.xls) file is UTF-8 encoded. The images should be uploaded in storage/products/ (or where you pointed) folder. The System will check that if a row exists then update, if not exist then insert.
SL = Serial Number
- The value of this column will be 1,2,3….10000
ProductName
- The product name here…
ProductType
- Now two types of product are supported
- standard
- service
Code
- Enter only numeric value
- This code will be uses for barcode scanner
- This code must be globally unique
HSNCode
- Only for Indian GST
BarcodeSymbology
- code25
- code39
- code128
- EAN5
- EAN13
- upca
- upce
StoreCodeNames
- Code names of any store to where you want to insert the product
- The code will be found here
- http://yourdomain/modernpos/admin/store_single.php
- General tab
- Code Name
- Code name must be comma seperated like this- store1,store2,store3
CategorySlug
- Dashboard > Product > Category List > Click on ‘Edit Button’ > Category Slug
UnitCode
- Dashboard > System > Unit > Click on ‘Edit Button’ > Code Name
TaxRateCode
- Dashboard > System > Taxrate > Click on ‘Edit Button’ > Code Name
TaxMethod
- The value will be one of the followings 1) inclusive or 2) exclusive
SupplierCode
- Dashboard > Supplier > Supplier List > Click on ‘Edit Button’ > Code Name
BrandCode
- Dashboard > System > Brand > > Brand List > Click on ‘Edit Button’ > Code Name
BoxCode
- Dashboard > System > Box > Click on ‘Edit Button’ > Code Name
AlertQuantity
- If the product quantity is equal or bellow the alert quantity then an alert will be shown
CostPrice
- Cost price of the product
SellPrice
- Sell price of the product
Description
- Brief description of the product
Status
- If the product will be published or not
Thumbnail
- Image thumbnail of the product
Images
- Multiple image links, will be seperated by pipe (|) like this /image1.jpg, /image2.png, /image2.gif
Important Notes:
in config.php
- When FILEMANAGERPATH will be pointed to storage then
- /image1.jpg will search image under posroot/storage/image1.jpg foler
- /products/image1.jpg will search image under posroot/storage/products/image1.jpg