PHP Point Of Sale

WooCommerce Integration

Setting up PHP Point Of Sale with Woocommerce

Installing Wordpress AND WooCommerce

WooCommerce is a free plugin for the popular site creating tool Wordpress. You first need to install wordpress and then install the Woocommerce plugin. NOTE: It is very important to always keep up to date with these 2 pieces of software for security and performance reasons.

Make sure Wordpress and WooCommerce are up to date

It is very important to always keep up to date with wordpress and woocommerce for security and performance reasons.

Installing Wordpress

You can follow the steps at:

Wordpress.org

Installing Woocommerce

You can follow the steps at WooCommerce's web site

Configuring PHP Point Of Sale To Connect to WooCommerce

Setting up PHP Point Of Sale to communicate with WooCommerce is easy. It involves 2 steps.

  1. Generating API key in WooCommerce
  2. Copying API information into PHP Point Of Sale

Generating API key in WooCommerce

See the WooCommerce Documentation on generating an API key for the REST API.

Copying API information into PHP Point Of Sale

In the last step you generated your API keys for WooCommerce; now you need to put this information into PHP Point Of Sale. Here are the steps.

  1. Login to your point of sale system and choose store config on the left navigation
  1. Search for "Ecommerce" and choose WooCommerce as e-commerce platform under the e-commerce setting.
  1. In the Woocommerce section that appears put in your WooCommerce Version; the URL to your store and the Consumer Key and Consumer Secret as shown in image below
  1. You have now completed setup.

Syncing Data

We have made the process of syncing data a one button operation. You can simply choose what you want to synchronize and our program will take care of it. You can import and/or export items, categories, tags, or just sync inventory data. This can be accomplished from store configuration as shown below by choosing your options and clicking sync.

NOTE: This process can take a LONG time; especially for the initial sync depending on how much data you have.

By default it synchronizes all items, categories, and tags. NOTE: You can exclude items by unchecking the box "Is Ecommerce Item" when editing/creating an item.

Setting up Automatic Synchronization via cron task

Woocommerce syncing can be setup to happen automatically via a cron task in php point of sale.

If you are using the popular cpanel software from your web site; you can read about setting up a cron task at their documentation website.

If you have command line access to your linux server; read more about cron tasks at:

https://help.ubuntu.com/community/CronHowto

If you are a cloud customer please contact us to get this setup.

We recommend setting the task to run every 15 minutes. We don't recommend doing a shorter interval for performance reasons.

To path to the script varies per server and where you installed it; but if you installed it in /home/public_html/pos the patch to the script in the cron task for every 15 minutes would look like

*/15 * * * * php /home/public_html/pos/index.php ecommerce cron http://phpposurl/

Information About Sync Matching

Our sync process will try to match woo commerce's sku field to php point of sale's UPC/EAN/ISBN field (item number)

WooCommerce Integration