Integrate WooCommerce with Rule
About integration
WooRule integrates woocommerce order and subscription data with the Rule Communications platform. Data is automatically sent from WooCommerce when an order event is triggered.
Further information about this plugin can also be found at WooRule plugin page.
NB: This article is intended for the latest WooRule version (v2.0+). For the knowledge base article based on previous versions (v1.x), see denna knowledge base article.
- Installation
- Events sent to Rule
- custom field sent to Rule
- Products back in stock
- Klarna Checkout
Installation
- WooRule can be added to your WooCommerce store by either searching for "WooRule" directly in the plugins or by downloading it manually from the plugins page ( https://wordpress.org/plugins/woorule/).
- Once installed, a Rule API key should be added to WooRule to link your Rule account to your WooCommerce store.
- The next step is to create an API key, you can do this through the green button "New API key" on the right side:
https://app.rule.io/#/settings/developer - Open WooRule and paste the API key into the Rule API Key field. Click "Save Changes" to save the API key.
- When you have finished your settings, make a test call to Rule for all your feeds, then you will be able to see in your account in Rule what data you are getting in and to what tag.
Use
WooRule Events
Triggered events in WooCommerce | Description | Tag in Rule |
Data sent to Rule |
Cart In Progress | Shopping cart updated | CartInProgress | Subscriber & Order Data |
Processing | The order is paid for and awaits completion | OrderProcessing | Subscriber & Order Data |
Completed | Order complete and ready | OrderCompleted | Subscriber & Order Data |
Shipped* | An order was sent* | OrderShipped | Subscriber & Order Data |
* Note: This is a custom event trigger that is not triggered unless it is manually set by the merchant.
For more information about order events, see the WooCommerce documentation klicka här.
custom field sent to Rule
Subscriber Fields
Subscriber.FirstName Subscriber.LastName Subscriber.Number Subscriber.Street1 Subscriber.Street2 Subscriber.City Subscriber.Zipcode Subscriber.State Subscriber.Country Subscriber.Company Subscriber.Source (WooRule)
Order Fields
Order.Number Order.Date (datetime) Order.Subtotal Order.Discount Order.Shipping Order.Total Order.Vat Order.Currency Order.PaymentMethod Order.DeliveryMethod Order.Names (multiple) Order.Brands (multiple) Order.Collections (multiple) Order.Tags (multiple) Order.Products (json)
Order Products JSON Field
Orders.Products contains a JSON formatted array with the details of the product/products in an order:
brand name image price price_vat vat qty subtotal total
Order Billing Fields
Order.BillingFirstname Order.BillingLastname Order.BillingStreet Order.BillingCity Order.BillingZipcode Order.BillingState Order.BillingCountry Order.BillingTele Order.BillingCompany
Products back in stock
In the WooCommerce integration you can use our standard set of our Back in stock API. To activate the feature, log in to your Woocommerce page and go to WooRule. There is a checkbox under Product Alert.
Under the settings, you can set your own texts, settings for when calls should be sent and to which tags.
For the Product Alert feature to be available on your WooCommerce login, version 2.8.0 needs to download the latest version of the integration via denna link
Klarna Checkout
WooRule will automatically detect if your store has the Klarna Checkout plugin installed. If the Klarna plugin is installed and activated, you will see the following options on the WooRule settings page:
When this option is checked, the newsletter registration form will appear on the Klarna checkout form, as shown in the image below:
Got stuck on any step? Contact us at support@rule.se We will gladly help you!