Integrate WooCommerce with Rule

About integration

WooRule integrates order and subscription data from WooCommerce 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 to be sent to Rule
  • Products back in stock
  • Klarna Checkout

Installation

  1. 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/).

  1. Once installed, a Rule API key should be added to WooRule to link your Rule account to your WooCommerce store.
  2. 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
  3. Open WooRule and paste the API key in the Rule API Key field. Click "Save changes" to save the API key.

  1. When you are done with your settings, make a test call to Rule for all your feeds, then you will be able to see in your account in Rule which data you receive and to which tag.


Use

WooRule Events

Triggered events in WooCommerce Description Tag i 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 to be 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!

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.