📦Installation
How to install and setup
Step 1 - Place resource in [qb] folder
Place the folder qb-pos inside your folder with all the other qb scripts. This is most likely called [qb]
Step 2 - SQL
Execute the following code in your database
CREATE TABLE IF NOT EXISTS `pos` (
`id` int(11) NOT NULL,
`businessName` varchar(50) DEFAULT NULL,
`categories` text DEFAULT NULL,
`products` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `pos`
ADD PRIMARY KEY (`id`);
ALTER TABLE `pos`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
INSERT INTO `pos` (`id`, `businessName`, `categories`, `products`) VALUES
(1, 'Example', '[\"Example1\", \"Example2\"]', '[{\"id\": 1, \"name\": \"Cool Item\", \"category\": \"Example1\", \"price\": 10, \"icon\": \"cool-item\"},\n{\"id\": 2, \"name\": \"Nice Item\", \"category\": \"Example2\", \"price\": 10, \"icon\": \"nice-item\"}]');
Step 3 - Setup Business
After creating the database table, you should see an example business setup. It includes a basic template for the business and its products. You may add as many categories and products as you like. To add another business, you can use the copy function on the example business to duplicate it. Make sure the name of the business corresponds with the name in your configuration.
Last updated