View Categories

Updating Webin to the latest version

1 min read

Follow these steps to upgrade default webin to the latest version

Execute the below commands in the shell

$ remountrw
$ rm -r /var/www
$ mkdir /var/www
$ cd /var/www
$ wget www.saleculator.com/download/webin.zip
$ apt-get update
$ apt-get install unzip
$ unzip webin.zip

Edit lighttpd.conf file to exclude assets folder

$ nano /etc/lighttpd/lighttpd.conf
...
...
url.rewrite-once = ("^/(css|assets|js|images|public)/(.*)$"  => "/$1/$2",
                    "^/(robots\.txt)$" => "/$1",
                    "^(.*)$"  => "/index.php/$1")

> Save file and exit(Ctrl+X, Y, Enter)
> Restart lighttpd
$ service lighttpd restart

Create a new resource for dashboard
Webin>Settings>Resources>New
Name: Webin.Dashboard.Databoxes
Res. Type: 0
Content:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<elements>
<databox key="payments"></databox>
<databox key="salestotal"></databox>
<databox key="stockvalue"></databox>
<databox key="currentsequence"></databox>
<databox key="salesbycashier"></databox>
<databox key="topproducts" count="5"></databox>
<databox key="weeklysales"></databox>
<databox key="lastreceipts" count="5"></databox>
<databox key="lastrefunds" count="5"></databox>
<databox key="abcanalysis" count="50" days="365"></databox>
<databox key="stockin" count="20"></databox>
<databox key="stockout" count="10"></databox>
</elements>

> In Webadmin Role, add below line

Databoxes;

0 Comments

Leave a Reply

Arrow-up