Skip to main content
The WooCommerce connector allows you to integrate WooCommerce into your data flow by pushing or pulling data from WooCommerce.

Key Capabilities

  • WordPress e-commerce platform integration for online store data management
  • Standard database operations (Select, Lookup, Upsert, and Stored Procedure) for data manipulation
Follow the steps below to connect Arc to WooCommerce.

Establish a Connection

To allow Arc to use data from WooCommerce, you must first establish a connection to WooCommerce. There are two ways to establish this connection:
  • Add a WooCommerce connector to your flow. Then, in the settings pane, click Create next to the Connection drop-down list.
  • Open the Arc Settings page, then open the Connections tab. Click Add, select WooCommerce, and click Next.
  • The login process is only required the first time the connection is created.
  • Connections to WooCommerce can be re-used across multiple WooCommerce connectors.

Enter Connection Settings

After opening a new connection dialogue, follow these steps:
  1. Enter the connection information:
    • Name — the static name of the connection. Set this as desired.
    • Type — this is always set to WooCommerce.
    • Auth Scheme — the authentication scheme to use for the connection. Options are Basic, OAuth 1.0 One Legged, or OAuth 2.0.
  2. Enter the connection information for your chosen authentication scheme:

Basic Auth

  1. In URL, provide the base URL of the WooCommerce instance to connect to.
  2. In User, enter the username to use to log in.
  3. In Password, enter the password for the user.
  4. Continue to Finalize Connection.

OAuth 1.0 One Legged

  1. In URL, provide the base URL of the WooCommerce instance to connect to.
  2. Open the WooCommerce Settings page.
  3. Open the Advanced tab.
  4. Under the REST API section, click Add key.
  5. Provide the requested information and click Generate API Key.
  6. Copy the values for Consumer key and Consumer secret from WooCommerce and enter them in your Arc connection.
  7. Continue to Finalize Connection.

OAuth 2.0

First, follow these steps to configure OAuth 2.0 for your WordPress server:
  1. Download the OAuth 2.0 Server plugin.
  2. Extract the plugin archive and copy the oauth2-provider folder to the wp-content\plugins folder.
  3. Activate the plugin in the WordPress admin interface.
Next, open the WordPress admin interface and follow these steps:
  1. Open the OAuth Server page.
  2. Click Add New Client.
  3. Provide the requested information and click Create Client.
  4. Copy the value for Client Key into OAuth Client Id in Arc.
  5. Copy the value for Client Secret into OAuth Client Secret in Arc.
  6. In URL in Arc, provide the base URL of the WooCommerce instance to connect to.
  7. Continue to Finalize Connection.

Finalize Connection

  1. Optionally, click Advanced to open the drop-down menu of advanced connection settings. These should not be needed in most cases.
  2. Click Test Connection to ensure that Arc can connect to WooCommerce with the provided information. If an error occurs, check all fields and try again.
  3. Click Add Connection to finalize the connection.
  4. In the Connection drop-down list of the connector configuration pane, select the newly-created connection.
  5. Click Save Changes.

Select an Action

After establishing a connection to WooCommerce, you must choose the action that the WooCommerce connector will perform. The table below outlines each action and where it belongs in an Arc flow.

Advanced Tab

Many of the settings on the Advanced tab are dynamically loaded from the data source you are working with, so they are not covered in this documentation. You can find detailed information for your data source on the Online Help Files page of the CData website. The options described below are available for all data sources.

Message

The Save to Sent Folder and Sent Folder Scheme settings are deprecated and hidden by default. They appear only on connectors where they were previously enabled or configured to a non-default value. To retain copies of successfully processed files, right-click the connector in the flow, choose Show Success Path, and connect the success path to a File connector.

Advanced Settings

Advanced settings are common settings for connectors that rely on arbitrary database drivers (for example, Database, CData, and API connectors) in order to make connections to various data sources.

Miscellaneous

Miscellaneous settings are for specific use cases.

Automation Tab

Automation Settings

Settings related to the automatic processing of files by the connector.

Performance

Settings related to the allocation of resources to the connector.

Alerts Tab

Settings related to configuring alerts. Before you can execute Service Level Agreements (SLAs), you need to set up email alerts for notifications. By default, Arc uses the global settings on the Alerts tab. To use other settings for this connector, toggle Override global setting on. By default, error alerts are enabled, which means that emails are sent whenever there is an error. To turn them off, uncheck the Enable checkbox. Enter a Subject (mandatory), then optionally enter a comma-separated list of Recipient emails.

SLAs Tab

Settings related to configuring Service Level Agreements (SLAs). SLAs enable you to configure the volume you expect connectors in your flow to send or receive, and to set the time frame in which you expect that volume to be met. Arc sends emails to warn the user when an SLA is not met, and marks the SLA as At Risk, which means that if the SLA is not met soon, it will be marked as Violated. This gives the user an opportunity to step in and determine the reasons the SLA is not being met, and to take appropriate actions. If the SLA is still not met at the end of the at-risk time period, the SLA is marked as violated, and the user is notified again. To define an SLA, toggle Expected Volume on, then click the Settings tab. Empty SLA configuration
  • If your connector has separate send and receive actions, use the radio buttons to specify which direction the SLA pertains to.
  • In the Expect at least portion of the window:
    • Set the minimum number of transactions you expect to be processed (the volume)
    • Use the Every fields to specify the time frame
    • Indicate when the SLA should go into effect. If you choose Starting on, complete the date and time fields.
    • Check the boxes for the days of the week that you want the SLA to be in effect. Use the dropdown to choose Everyday if necessary.
  • In the Set status to ‘At Risk’ portion of the window, specify when the SLA should be marked as at risk.
    • By default, notifications are not sent until an SLA is in violation. To change that, check Send an ‘At Risk’ notification.
The following example shows an SLA configured for a connector that expects to receive 1000 files every day Monday-Friday. An at-risk notification is sent 1 hour before the end of the time period if the 1000 files have not been received. SLA Configuration Example
You can turn off SLA alerts if necessary. This can be useful during maintenance windows. Click Settings on the navbar, then navigate to Alerts > General Alerts. Click the tablet and pencil icon to edit, and uncheck the SLA Alerts setting.

Macros

Using macros in file naming strategies can enhance organizational efficiency and contextual understanding of data. By incorporating macros into filenames, you can dynamically include relevant information such as identifiers, timestamps, and header information, providing valuable context to each file. This helps ensure that filenames reflect details important to your organization. Arc supports these macros, which all use the following syntax: %Macro%.

Examples

Some macros, such as %Ext% and %ShortDate%, do not require an argument, but others do. All macros that take an argument use the following syntax: %Macro:argument% Here are some examples of the macros that take an argument:
  • %Header:headername%: Where headername is the name of a header on a message.
  • %Header:mycustomheader% resolves to the value of the mycustomheader header set on the input message.
  • %Header:ponum% resolves to the value of the ponum header set on the input message.
  • %RegexFilename:pattern%: Where pattern is a regex pattern. For example, %RegexFilename:^([\w][A-Za-z]+)% matches and resolves to the first word in the filename and is case insensitive (test_file.xml resolves to test).
  • %Vault:vaultitem%: Where vaultitem is the name of an item in the vault. For example, %Vault:companyname% resolves to the value of the companyname item stored in the vault.
  • %DateFormat:format%: Where format is an accepted date format (see Sample Date Formats for details). For example, %DateFormat:yyyy-MM-dd-HH-mm-ss-fff% resolves to the date and timestamp on the file.
You can also create more sophisticated macros, as shown in the following examples:
  • Combining multiple macros in one filename: %DateFormat:yyyy-MM-dd-HH-mm-ss-fff%%EXT%
  • Including text outside of the macro: MyFile_%DateFormat:yyyy-MM-dd-HH-mm-ss-fff%
  • Including text within the macro: %DateFormat:'DateProcessed-'yyyy-MM-dd_'TimeProcessed-'HH-mm-ss%