Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
176 commits
Select commit Hold shift + click to select a range
c45ec24
fix admin settings
kilbot Oct 29, 2015
ce1d988
fix: bug causing issue with some variations, e.g.: 000, 00 and 0
kilbot Nov 10, 2015
95401fe
Fix: display of print receipt path in settings
kilbot Nov 13, 2015
91eea86
Fix: POS not showing for some users
kilbot Nov 13, 2015
3fc7ebd
Tweak: remove hard dependence for unique customer email
kilbot Nov 13, 2015
4536924
remove Bootstrap modals
kilbot Dec 2, 2015
5d409a1
improved error messages
kilbot Dec 3, 2015
589bc17
move global modals
kilbot Dec 5, 2015
925b2a7
refactor POS params
kilbot Dec 6, 2015
9ac27ff
refactor POS API
kilbot Jan 5, 2016
4b4ae1f
add Customer settings
kilbot Jan 7, 2016
8b597f7
add Receipt settings
kilbot Jan 9, 2016
62934dd
fix integration tests
kilbot Jan 9, 2016
4901f71
fix travis apache install
kilbot Jan 9, 2016
88ab8ec
Update print settings
kilbot Jan 15, 2016
05dc864
refactor order entities
kilbot Jan 20, 2016
eff9425
refactor order model
kilbot Jan 21, 2016
8b5612c
Add split cart item functionality
kilbot Jan 22, 2016
9b16f71
refactor cart meta fields
kilbot Jan 22, 2016
81c34b6
improve cart void
kilbot Jan 28, 2016
5c8b881
add settings for shipping and fee
kilbot Jan 29, 2016
e25ab15
fix modal close
kilbot Jan 29, 2016
44f69c6
toggle taxes
kilbot Jan 30, 2016
ccdc6d2
refactor product entities
kilbot Feb 1, 2016
3c2aefc
refactor cart
kilbot Feb 6, 2016
67f64d0
refactor modals
kilbot Feb 8, 2016
f4285b5
Add support for gateway integrations
kilbot Feb 11, 2016
b2feb66
fix php 7 test
kilbot Feb 13, 2016
499aee6
update deps
kilbot Feb 13, 2016
42db5d6
improve dual-storage (WIP)
kilbot Mar 9, 2016
8dc7ddf
add php 7.0 test
kilbot Mar 10, 2016
cc61a1d
fix travis-ci
kilbot Mar 10, 2016
4dc9c35
namespace plugin
kilbot Mar 10, 2016
0f18c0a
fix travis.yml
kilbot Mar 10, 2016
3cf1e6b
fix travis.yml
kilbot Mar 10, 2016
767722f
fix travis.yml
kilbot Mar 10, 2016
86eca17
fix travis.yml
kilbot Mar 10, 2016
66147f3
fix travis.yml
kilbot Mar 10, 2016
97540e3
fix php 7 tests
kilbot Mar 10, 2016
e690897
namespacing fixes
kilbot Mar 10, 2016
9db1190
refactor dual collection
kilbot Mar 17, 2016
7bf8974
filtered collection
kilbot Mar 17, 2016
5c2390b
update dual collection
kilbot Mar 22, 2016
0b9c4ec
improve customer search
kilbot Mar 24, 2016
f9d80c7
improve product search
kilbot Mar 27, 2016
6c04056
improve product search
kilbot Mar 27, 2016
c943383
allow 'Any ...' variations
kilbot Apr 4, 2016
af674e5
update DualModel
kilbot Apr 6, 2016
9f367e7
improve dual collection
kilbot Apr 9, 2016
2d9da78
fix gateway check for online store
kilbot Jun 15, 2016
2926875
Update README.md
kilbot Jun 20, 2016
b0402f9
Update README.md
kilbot Jun 20, 2016
7ce934b
0.5-beta
Jul 2, 2016
d2cb600
fix tests
kilbot Jul 2, 2016
de84d9e
add docker dev environment
kilbot Jul 13, 2016
c525ab5
fix submodule url
kilbot Jul 13, 2016
9f21ca9
update travis
kilbot Jul 13, 2016
4643966
fix travis
kilbot Jul 13, 2016
09a486f
fix travis
kilbot Jul 13, 2016
5210d05
update docker
kilbot Jul 15, 2016
3267fdb
update travis
kilbot Jul 15, 2016
1522be8
fix typo
kilbot Jul 15, 2016
252f3cf
update docker
kilbot Jul 15, 2016
1d4f9d4
update readme
kilbot Jul 15, 2016
f80376c
increase travis sleep
kilbot Jul 15, 2016
83e47b5
update docker
kilbot Jul 16, 2016
5855fd2
add integration tests to travis
kilbot Jul 16, 2016
68187ac
update docker
kilbot Jul 17, 2016
eca7bba
add version checks for travis
kilbot Jul 17, 2016
02bd324
update docker
kilbot Jul 17, 2016
17884d7
add cart settings page
kilbot Aug 9, 2016
e1dc051
add force_ssl setting
kilbot Aug 10, 2016
b324a85
update print service
kilbot Aug 11, 2016
ec23233
update print service
kilbot Aug 12, 2016
7d33d9a
print settings
kilbot Aug 15, 2016
dd1c4fa
add dummy order
kilbot Aug 21, 2016
c81a53f
add qz tray and update doc links
kilbot Aug 22, 2016
c37e2f3
add save to file option for receipts
kilbot Aug 23, 2016
f8e28aa
update print service
kilbot Aug 23, 2016
3c91ecd
update print service
kilbot Aug 24, 2016
5206e01
update print service
kilbot Aug 24, 2016
f2620ed
add js integration tests
kilbot Sep 14, 2016
77df6d2
update loading service for modals
kilbot Sep 28, 2016
8ed29a4
add keypress service
kilbot Oct 5, 2016
b31e0ac
add gateway integrations
kilbot Oct 21, 2016
c1f0437
add variation visibility settings
kilbot Oct 25, 2016
578b58b
add custom product tab settings
kilbot Nov 7, 2016
aedd898
product tab params
kilbot Nov 9, 2016
e21847a
fix tests
kilbot Nov 13, 2016
8bae314
fix tests
kilbot Nov 13, 2016
443b9e0
allow no product tabs
kilbot Nov 13, 2016
bc4777f
update order icons
kilbot Nov 23, 2016
c7e02df
update Collections and Models to new pattern
kilbot Nov 23, 2016
7ec8014
WIP
kilbot Nov 25, 2016
f2b18a0
WIP
kilbot Nov 29, 2016
6b730c3
WIP [skip ci]
kilbot Nov 30, 2016
98e76cc
WIP
kilbot Dec 3, 2016
fd44435
WIP
kilbot Dec 4, 2016
bd43726
WIP
kilbot Dec 5, 2016
463681d
Add support for Cashier role
thomasmery Dec 5, 2016
e007fdf
Cleanup
thomasmery Dec 5, 2016
4f2a845
minor bug fixes
kilbot Dec 6, 2016
7115556
Merge pull request #145 from kilbot/decorator-pattern
kilbot Dec 6, 2016
f4deff3
Allow POS operators to view basic POS menu in WP admin
thomasmery Dec 6, 2016
4a364e7
update email receipt modal
kilbot Dec 8, 2016
e58b4a1
fix jshint errors
kilbot Dec 10, 2016
5540ed5
add modelId override
kilbot Dec 11, 2016
0c8c960
add local db prefixes
kilbot Dec 12, 2016
05a354e
delete all local data
kilbot Dec 12, 2016
843bcb8
fix product search bug
kilbot Dec 13, 2016
08b27cc
add xhr.abort() for pos collections
kilbot Dec 14, 2016
0d2242b
fix product search by id bug
kilbot Dec 14, 2016
1b83c75
update customer search
kilbot Dec 15, 2016
2a95d60
fix several search bugs
kilbot Dec 16, 2016
e96181a
code review
kilbot Dec 16, 2016
3e66a88
Merge pull request #146 from kilbot/restrict-user-to-store
kilbot Dec 16, 2016
357e8d6
fix php54 syntax error
kilbot Dec 16, 2016
52c8316
fix html entities in Store name
kilbot Dec 16, 2016
8baba62
restore print router
kilbot Dec 17, 2016
9e58ad7
fix dropdown z-index
kilbot Dec 17, 2016
74bf26b
redirect to login after logout
kilbot Dec 17, 2016
59b00eb
remove toggle taxes
kilbot Dec 19, 2016
14be945
remove toggle taxes
kilbot Dec 19, 2016
5ce3330
WIP
kilbot Dec 19, 2016
65a867a
fix select2 & moment localisation
kilbot Dec 20, 2016
12f7cec
Fix product variation filters
kilbot Dec 20, 2016
25c7d9a
update title onBeforeEnter
kilbot Dec 20, 2016
c27f31c
Fix access settings persistence bug
kilbot Dec 20, 2016
2b5f903
find/replace old woopos.com.au url
kilbot Dec 20, 2016
4a75705
improve barcode search
kilbot Dec 23, 2016
81728d6
bug fixes
kilbot Dec 23, 2016
e670f5b
fix test
kilbot Dec 23, 2016
e3f99ce
Fix conflict with hotkeys and keypress service
kilbot Dec 30, 2016
1c03a68
improve edit orders
kilbot Jan 8, 2017
545da92
update settings
kilbot Jan 8, 2017
feaddbc
Beta bug fixes
kilbot Jan 26, 2017
36ee3a5
Added 'woocommerce_pos_default_product_visibility' filter so that use…
Goosse Jan 27, 2017
fa14aad
Added 'woocommerce_pos_default_order_type_is_pos' filter to give user…
Goosse Jan 27, 2017
77f8ddc
Quick change in if statement for consistency.
Goosse Jan 27, 2017
1f2b36f
Merge pull request #154 from Goosse/master
kilbot Jan 27, 2017
c9189f9
Add listener for card scan
kilbot Jan 31, 2017
2e3add7
Receipt template fixes
kilbot Mar 2, 2017
61c5e30
Fix auto print
kilbot Mar 14, 2017
de22121
Update docker
kilbot Mar 30, 2017
9fee160
Add Saudi Riyal [ci skip]
kilbot Apr 24, 2017
8eca9c9
0.5-beta-2
kilbot May 31, 2018
518cc0b
Merge pull request #192 from kilbot/0.5-beta-2
kilbot May 31, 2018
c34abeb
travis submodules
kilbot Jun 1, 2018
555580f
fix typo
kilbot Jun 1, 2018
d89c95b
update docker engine
kilbot Jun 1, 2018
04de29d
Merge pull request #193 from kilbot/0.5-beta-2
kilbot Jun 1, 2018
60ee354
update submodules
kilbot Jun 7, 2018
d0f68ce
Merge branch 'master' of https://github.com/kilbot/WooCommerce-POS
kilbot Jun 7, 2018
a297f9c
Update client
kilbot Jun 15, 2018
3ee3e6f
update client
kilbot Jun 27, 2018
6175563
update submodules
kilbot Sep 13, 2018
91fbfb1
update docker
kilbot Sep 18, 2018
a35f1e8
version bump
kilbot Sep 18, 2018
d770bc4
version bump
kilbot Sep 18, 2018
0391970
update tests
kilbot Sep 19, 2018
6349fa1
remove mock server
kilbot Sep 19, 2018
f97639e
add client unit-test
kilbot Sep 19, 2018
1c24bb1
add users api
kilbot Oct 8, 2018
4620018
WP Code Style
kilbot Oct 31, 2018
e99c41b
update submodules
kilbot Oct 31, 2018
e62f75c
update travis.yml
kilbot Nov 1, 2018
f5e8f15
update client
kilbot Nov 8, 2018
291065c
fix typo
kilbot Nov 14, 2018
d2ae69f
update login
kilbot Mar 31, 2019
ac35a78
Merge branch 'master' of https://github.com/kilbot/WooCommerce-POS
kilbot Mar 31, 2019
9110f2e
add wcpos auth
kilbot Apr 1, 2019
e11145c
customer api
kilbot Dec 4, 2019
b91cea0
Update README.md
kilbot May 11, 2021
a543ef9
Create archive-notice.svg
kilbot Aug 4, 2021
1d7bf9f
Update README.md
kilbot Aug 4, 2021
e3a7692
Update README.md
kilbot Sep 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 0 additions & 3 deletions .coveralls.yml

This file was deleted.

1 change: 1 addition & 0 deletions .docker
Submodule .docker added at 3e2e2a
24 changes: 24 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
tab_width = 4
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true

[*.txt]
trim_trailing_whitespace = false

[*.{md,json,yml}]
trim_trailing_whitespace = false
indent_style = space
indent_size = 2
35 changes: 35 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
## these environment variables are passed to containers via docker-compose
## copy this to your plugin root directory and rename as .env

## project name used by docker & plugin folder name
PROJECT_NAME=woocommerce-pos

## default development settings
PHP_VERSION=7.2
MYSQL_VERSION=8.0
# WP_VERSION=latest
# WC_VERSION=latest
# WP_MULTISITE=0

## wordpress settings
# WP_USER=admin
# WP_PASSWORD=password
# WP_EMAIL=example@example.com
# WP_TITLE=Localhost
WP_URL=dev.local

## external ports
# LOCALHOST_HTTP_PORT=80
# LOCALHOST_HTTPS_PORT=443
# LOCALHOST_MYSQL_PORT=3306
# LOCALHOST_PHP_PORT=9001
# XDEBUG_REMOTE_PORT=9000

## mysql
# MYSQL_ROOT_PASSWORD=wordpress
# DB_NAME=wordpress
# DB_HOST=db-mysql57:3306
# DB_PASSWORD=wordpress

# directory for wp cli packages
# WP_CLI_PACKAGES_DIR=/var/www/html
44 changes: 24 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
.sass-cache
node_modules
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

# production
/build

# misc
launch.json
.idea
npm-debug.log
assets/css/src/admin.css
assets/css/src/icons.css
assets/css/src/pos.css
assets/css/src/admin-icons.css
assets/css/admin.min.css
assets/css/pos.min.css
assets/css/icons.min.css
assets/css/admin-icons.min.css
assets/js/admin.build.js
assets/js/app.build.js
assets/js/core.build.js
assets/js/app.min.js
assets/js/admin.min.js
assets/js/vendor.bundle.js
assets/js/products.min.js
coverage
assets/js/templates.js
.data
.html
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
27 changes: 6 additions & 21 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,21 +1,6 @@
[submodule "assets/js/src/lib/config/obscura/filtered"]
path = assets/js/src/lib/config/obscura/filtered
url = https://github.com/kilbot/backbone-filtered-collection.git
[submodule "assets/js/src/lib/config/obscura/sorted"]
path = assets/js/src/lib/config/obscura/sorted
url = https://github.com/kilbot/backbone-sorted-collection.git
[submodule "assets/js/src/lib/config/obscura/paginated"]
path = assets/js/src/lib/config/obscura/paginated
url = https://github.com/kilbot/backbone-paginated-collection.git
[submodule "assets/js/src/lib/config/obscura/query"]
path = assets/js/src/lib/config/obscura/query
url = https://github.com/kilbot/backbone-query.git
[submodule "assets/js/src/lib/config/deep-model"]
path = assets/js/src/lib/config/deep-model
url = https://github.com/kilbot/backbone-deep-model.git
[submodule "assets/js/src/lib/config/idb"]
path = assets/js/src/lib/config/idb
url = https://github.com/kilbot/backbone-idb.git
[submodule "styleguide"]
path = styleguide
url = https://github.com/kilbot/WooCommerce-POS-StyleGuide.git
[submodule ".docker"]
path = .docker
url = https://github.com/kilbot/WooCommerce-Dev-Docker.git
[submodule "client"]
path = client
url = https://github.com/kilbot/woocommerce-pos-client.git
75 changes: 0 additions & 75 deletions .jshintrc

This file was deleted.

120 changes: 59 additions & 61 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,75 +1,73 @@
language: php
sudo: required

php:
- 5.4
language: node_js

addons:
hosts:
- woopos.dev
node_js:
- "node"

services:
- docker

env:
- WP_VERSION=latest WP_MULTISITE=0
# - WP_VERSION=latest WP_MULTISITE=1
# - WP_VERSION=3.8 WP_MULTISITE=0
# - WP_VERSION=3.8 WP_MULTISITE=1
global:
- DOCKER_COMPOSE_VERSION=1.22.0
- MYSQL_VERSION=8.0
- WP_MULTISITE=0
- WP_VERSION=latest
matrix:
- PHP_VERSION=5.6 WC_VERSION=3.2.6
- PHP_VERSION=5.6 WC_VERSION=3.3.5
- PHP_VERSION=5.6 WC_VERSION=3.4.4
- PHP_VERSION=5.6 WC_VERSION=latest
- PHP_VERSION=7.0 WC_VERSION=3.2.6
- PHP_VERSION=7.0 WC_VERSION=3.3.5
- PHP_VERSION=7.0 WC_VERSION=3.4.4
- PHP_VERSION=7.0 WC_VERSION=latest
- PHP_VERSION=7.2 WC_VERSION=3.2.6
- PHP_VERSION=7.2 WC_VERSION=3.3.5
- PHP_VERSION=7.2 WC_VERSION=3.4.4
- PHP_VERSION=7.2 WC_VERSION=latest

git:
submodules: false

before_install:
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install stable
# first, stop any existing mysql services due to port conflict
- sudo service mysql stop
# git submodules
- echo -e "machine github.com\n login $CI_USER_TOKEN" >> ~/.netrc
- git submodule update --init --recursive
# update docker
- docker -v
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y install docker-ce
- docker -v
# update docker-compose
- docker-compose -v
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- docker-compose -v

install:
# php libraries
- composer require satooshi/php-coveralls:~0.6.1@stable
- composer require guzzlehttp/guzzle:~5
- composer require 10up/wp_mock:dev-master
# install wordpress & woocommerce & test theme
- bash tests/unit/php/bin/install-travis-wp-tests.sh woopos_tests root '' localhost $WP_VERSION
- mkdir /tmp/wordpress/wp-content/plugins/woocommerce-pos/
- mv * .[^.]* /tmp/wordpress/wp-content/plugins/woocommerce-pos/
- mv /tmp/wordpress/* ./
- git clone https://github.com/kilbot/WooCommerce-POS-Test-Theme.git wp-content/themes/WooCommerce-POS-Test-Theme
- git clone https://github.com/kilbot/WooCommerce-POS-Test-Plugin.git wp-content/plugins/woocommerce-pos-test
# apache
- sudo apt-get update
- sudo apt-get install apache2 libapache2-mod-fastcgi
# enable php-fpm
- sudo cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf
- sudo a2enmod rewrite actions fastcgi alias
- echo "cgi.fix_pathinfo = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- ~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm
# configure apache virtual hosts
- sudo cp -f ./wp-content/plugins/woocommerce-pos/tests/integration/php/bin/travis-ci-apache /etc/apache2/sites-available/default
- sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/default
- sudo service apache2 restart
- yarn install && cd client && yarn install
- yarn build
- yarn start

before_script:
# wp-cli
- curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
- chmod +x wp-cli.phar
- sudo mv wp-cli.phar /usr/local/bin/wp
- wp --info
- wp core config --dbname=woopos_tests --dbuser=root
- wp core install --url=woopos.dev --title=WooCommercePOS --admin_user=admin --admin_password=password --admin_email=support@woopos.com.au
- wp rewrite structure '/%year%/%monthnum%/%postname%'
- wp plugin activate woocommerce-pos
- wp plugin activate woocommerce-pos-test
- wp plugin install woocommerce --activate
- wp plugin install wordpress-importer --activate
- wp import wp-content/plugins/woocommerce/dummy-data/dummy-data.xml --authors=create
- wp option update woocommerce_api_enabled yes
- cp wp-content/plugins/woocommerce-pos/tests/integration/php/bin/wp-cli.yml ./
- wp rewrite flush --hard
# grunt-cli
- cd wp-content/plugins/woocommerce-pos/
- npm install -g grunt-cli
- npm install
- echo "Bootstrap test environment"
- until curl --silent -XGET --fail http://localhost; do printf '.'; sleep 1; done

script:
- grunt test
- phpunit -c phpunit.xml.dist
- phpunit -c phpunit.int.xml
# - ./node_modules/.bin/pioneer
- yarn unit-test:client -- --coverage
- yarn unit-test:php-${PHP_VERSION}
- yarn integration-test:php-${PHP_VERSION}

cache:
- yarn

after_script:
- php vendor/bin/coveralls -v
- grunt coverage
after_success:
- bash <(curl -s https://codecov.io/bash)
Loading