< Back
Print

WooCommerce Transmitter

We provide a full configured station template with the necessary datamap and jobs for the Dynamic JSON Transmitter!
The transmitter will only work with a HTTPS-System


Setup the transmitter

In the transmitter settings you need to setup the following things:

  1. The URL to the WooCommerce Shop
  2. The WooCommerce consumer key
  3. The WooCommerce consumer secret
  4. The WordPress username
  5. The for the user generated WordPress application password

The table to store WooCommerce-IDs is not required

API-Tokens and Application Password

WooCommerce

Follow this guideline to generate the consumer key and consumer secret.

Generate WooCommerce Credentials
1. Go to the WooCommerce Settings
Step 1 for generating the WooCommerce credentials
2. Change the permission from ‘Read’ to ‘Read/Write’ and add a name for the credentials and click generate
Step 2 WooCommerce generate credentials
3. After clicking ‘Generate API key’ you get the consumer key and the consumer secret.
Copy the keys and save them because after leaving the page you can’t look up the secret key again.
Step 3 WooCommerce generate credentials

WordPress

Follow this guideline to generate the application password for a user.

Generate WordPress Application Password
1. Go to the WordPress Users and create a new user or select an existing user that you want to create the application password for
Step 1 WordPress Application Password
2. Scroll down to the section ‘Application Password’
Step 2 WordPress Application Password
3. Add a name for the password and click on ‘Add Application Password’.
Copy the generated password and safe it because after leaving the page you can’t look up the password again.
Step 3 WordPress Application Password

Contentserv configuration

After generation all the necessary credentials save them in the contentserv password manager and select them in the WooCommerce transmitter settings.
Example: Setting the WooCommerce consumer key and secret. Do the same for the WordPress application password.

1. Go to the contentserv settings
Contentserv WooCommerce Password configuration
2. Go to the transmitter settings and select the created passwords
WooCommerce transmitter settings password selection

 

Product Node Mapping

Please ensure that the nodemap settings are set correctly to identify products and variants and to differentiate if the record needs to be created/updated or deleted.

Nodemap configuration for WooCommerce

Configuring the datamaps

In every datamap is a row used to identify the product. In the ‘productUpdateCreate’-datamap this is the “sku”, in the ‘categoryUpdateCreate’-datamap this is the “slug”. The last row in the datamaps is always called ‘additionalInformation’. This row is ignored by WooCommerce but is necessary for the connector to work. In this row the csrecordid and the csrecordclass are stored.

 

If you export products with variants you need to configure the row called ‘variants’ in the ‘productUpdateCreate’-datamap, in which an array of the skus from the variants is stored. To connect the variants correctly to the product, you need to setup the sku for the variant in the ‘variants’ datamap.

Attributes

In the datamap you always configure attributes with the following key:

 

attributes|your-name

 

Every attribute gets configured as an array and needs a name, the position, the visibility, variation and its options. If ‘variation’ is set to ‘true’, then this attribute is used for variants.
The key ‘options’ always expects an array.

Media to upload

You can send only 1 image per variant but multiple media files per product. A category can also contain only 1 image. For variants and categories you need to set the key ‘image’ in the datamap.
All the files that you want to upload to WordPress for a product need to be sent with the key ‘images’ in the datamap.

Every media upload can contain the following keys:
Image upload array in the datamap for WooCommerce images

 

 

Was this article helpful?
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Table of Contents