Moving the cart logic from WooCommerce to the POS

For speed, the cart logic needs to be moved from the server to the Point of Sale.

Download
WooCommerce POS
  • Roadmap
  • Docs
  • Demo
  • Upgrade to Pro
  • Support
  • Login

May 8, 2014 by kilbot 2 Comments

The most important thing for any Point of Sale software is that it needs to be lightening fast. The product list can be downloaded to local storage for fast searching and filtering, but the cart also needs to respond as quick. Items should appear in the cart immediately and the totals should be instant. Any POS which requires a call to the server is going to seem slow and clunky, and a cart that hangs mid-sale is useless.

The only way to make the cart truly responsive is to move the logic to the client side. A javascript library will have to be written to handle calculations using the same settings as WooCommerce. The data can be stored in backbone models and displayed with the help of an accounting plugin.

One concern is how to deal with any sync issues at checkout. Having the POS as dumb terminal means WooCommerce is responsible for calculating the correct totals, tax, stock management etc etc. Moving the cart logic client side means the POS is responsible for getting it right.

Filed Under: Development Tagged With: accounting.js, backbone.js, cart, cart logic

Search

WooCommerce POS

  • Download
  • Upgrade to Pro
  • Demo
  • Blog
  • Roadmap
  • FAQ
  • Documentation
  • Translate
  • Support
  • My Account

Connect

© 2025 · The Kilbot Factory · Terms & Conditions