
WooCommerce fires an action whenever an order is completed, its status changes, or a product is created or updated. This plugin lets you pick one of these events and define a shortcode that is executed each time the event occurs.
The shortcode receives all relevant WooCommerce data (order, line items, SKUs, or product details) as a URL-encoded JSON string via the placeholder #orderdata#. Use it to push orders or products to another shop system, an ERP, a CRM, or any REST API – for example with the PRO version of the JSON Content Importer or with a shortcode plugin of your own.
Features
- Event-based trigger – choose one WooCommerce hook per site:
- Order thank-you page (
woocommerce_thankyou) - Order completed (
woocommerce_order_status_completed) - Order status changed (
woocommerce_order_status_changed) - Product created or updated (
woocommerce_update_product)
- Order thank-you page (
- Shortcode execution – the configured shortcode runs with the event data injected via
#orderdata#. - Duplicate protection – orders are marked after a successful sync, so reloading the thank-you page does not trigger a second call.
- Multisite-aware SKU lookup – if a product is not found on the current site, the other sites of the network are checked.
- Logging – the last 20 events (event, order/product, shortcode result) are stored and shown in the admin, with links to the order or product.
- E-mail notification – optionally receive a short e-mail per event with order number, event type and shortcode result.
- HPOS-compatible – works with WooCommerce High-Performance Order Storage and the block-based Cart/Checkout.
- Clean uninstall – all settings and log data are removed on deletion if you opt in.
Privacy
The plugin only processes data on your own site. Order and product data are handed to the shortcode you configure; whether that shortcode sends data to a third party is up to the shortcode plugin you use. The built-in log stores event type, order/product ID and shortcode result – no customer names, addresses or e-mail addresses. The optional notification e-mail contains the order number and the shortcode result, not the order data itself.