{eac}SoftwareRegistry Subscriptions for WooCommerce
{eac}SoftwareRegistry Subscriptions for WooCommerce is a plugin, installed on your WooCommerce site, that adds a custom Webhook topic for subscription updates to the WooCommerrce Webhooks, and adds subscription and product data to WooCommerce order Webhooks. Adds a custom Webhook topic for subscript
{eac}SoftwareRegistry Subscriptions for WooCommerce is a plugin, installed on your WooCommerce site, that adds a custom Webhook topic for subscription updates to the WooCommerrce Webhooks, and adds subscription and product data to WooCommerce order Webhooks.
- Adds a custom Webhook topic for subscription updates to WooCommerce Webhooks.
- Extends the WooCommerce Order Webhooks by adding subscription data to orders with subscriptions.
- Adds product meta data to order and subscription records passed through WooCommerce webhooks.
- Works with WooCommerce Subscriptions – and – SUMO Subscriptions.
When WooCommerce creates an order, the order is stored with type set to “ shop_order “. When the order is for a subscription, a related order is stored with type set to “ shop_subscription “. When a subscription is renewed, a new “ shop_order ” is created related back to the original “ shop_subscription ” order.
When subscriptions ( shop_subscription ) are passed through the “{eac}SoftwareRegistry WC Subscription” webhook, additional subscription data and related order numbers are added to the subscription order record being passed.
When orders ( shop_order ) are passed through the WooCommerce Order created , Order updated , and Order restored webhooks, this plugin will append any related shop_subscription orders with the additional subscription data and related order numbers.
Meta data (custom fields and attributes) from the products in the order may be appended to the order and subscription records.
For order webhooks, options are presented on the “Webhook” edit screen to choose what data may be added to the orders so that extended data is only retrieved and sent through the webhook where needed.
WooCommerce Webhooks are created by going to: WooCommerce → Settings → Advanced → Webhooks in the administration of your store site.
With version 2+, SUMO Subscriptions is also supported in nearly the same way as WooCommerce Subscriptions by creating a pseudo shop_subscription order from the SUMO Subscription post record and the original or renewal WooCommerce shop_order .
Subscriptions
To create a webhook for subscription updates, choose “{eac}SoftwareRegistry WC Subscription” , when using Woo Subscriptions, or “{eac}SoftwareRegistry Sumo Subscription” , when using SUMO Subscriptions, for the topic on the Webhook data screen.