smartpack/wordpress-woocommerce-plugin

There is no license information available for the latest version (0.0.1) of this package.

WordPress SmartPack addon to WooCommerce with full integration to smartpack.dk system.

0.0.1 2022-01-27 18:17 UTC

This package is auto-updated.

Last update: 2024-03-29 04:26:59 UTC


README

Webhook rules

Hooks Smartpack WMS need endpoints to update different data for product, stock and order there will be some REST API endpoints for that. remeber to add a webhook key in the settings area else its have disabled security and all can sending webhook to your store.

Stock changed webhook

{domain-path}/wp-json/smartpack-wms/v1/stock-changed

Order changed webhook

{domain-path}/wp-json/smartpack-wms/v1/order-changed

Crontab

All data between SmartPack WMS and Woocommerce will be synced. We are using WordPress built-in cron-scheduler for processing order and product data, if you disabled the built-in cron-scheduler in WordPress, you need to run add custom-cronjob inside your crontab file and be sure to install the WP CLI on your system.

* * * * * wp cron event run wms_cron_product_hook
* * * * * wp cron event run wms_cron_order_hook

You can also use WP CLI to trigger cron events manually or delete existing cron events if something goes wrong.

wp cron event run --due-now --allow-root
wp cron event delete wms_cron_product_hook --allow-root

Product hint:

  • Simple product use its own SKU
  • Product variations need there own SKU else its used parent SKU.

Module Featuers

WMS

  • Product
    • CLI: Full sync of products from shop to WMS integration
  • Order
    • CLI: Sync all with shipment status
  • Stock
    • Hook: update product stock on hook signals
    • CLI: Full stock sync to be ajour from WMS into Woo

Woocommerce order process

Custom orders will not be automatically transfered to the WMS integration.