Skip to main content

WooCommerce Integration

This Enthusiast plugin enables the import of product data directly from WooCommerce.

First, install the enthusiast-source-woocommerce package using pip:

pip install enthusiast-source-woocommerce

Then, enable the plugin by adding it to the settings.py:

CATALOG_PRODUCT_SOURCE_PLUGINS = [
    ...
    "enthusiast_source_woocommerce.WoocommerceProductSource",
]

Set WooCommerce consumer key and secret by setting enviroment variables

WOO_CONSUMER_KEY=consumerkey
WOO_CONSUMER_SECRET=consumersecret

OR continue reading to implement Consumer Key and Secret instead in sources configuration.

Save the changes and restart the web server and the worker.

Syncing WooCommerce Products to a Data Set

Log in as an admin user and go to Manage → Data Sets from the left-hand menu.

Then. click on "Sources" next to the desired data set.

Add a source using “WooCommerce” as the plugin and provide a JSON configuration with the following attributes:

Provide base url to your shop.

{
  "base_url": "BASE_URL",
}

If you decide to add Consumer Key and Secrect directly to sources

{
    ...
  "consumer_key": "consumerkey",
  "consumer_secret": "consumersecret"
}

By default synchronization will obtain 20 products per page.

You can change this by setting up "per_page" in your config.

Min. 10, max 100

{
    ...
  "per_page": 10
}

Example configuration for source

{
    "base_url": "http://localhost:8080",
    "consumer_key": "mykey",
    "consumer_secret": "mysecret",
    "per_page": 10
}

Metadata

Release files for enthusiast-source-woocommerce 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for enthusiast-source-woocommerce 1.4.0
File Size Uploaded
enthusiast_source_woocommerce-1.4.0.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for enthusiast-source-woocommerce 1.4.0
File Interpreter ABI Platform
enthusiast_source_woocommerce-1.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / enthusiast_source_woocommerce-1.4.0.tar.gz

Download URL enthusiast_source_woocommerce-1.4.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f1fee6b56f350ed53410256362e8f47207f855fbc6e9c377c455bad46dd9e3cf
BLAKE2b-256 checksum
How to use checksums
3534bf9dca753432fd3b563562e3577880512917f6b73b6fa80de718eb509b7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.12.13 Linux/6.17.0-1015-azure

Release files / enthusiast_source_woocommerce-1.4.0-py3-none-any.whl

Download URL enthusiast_source_woocommerce-1.4.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
276a8bfdcab683bf08a8ecd194d201401a61fa915860b8b78bb33b684290b3d6
BLAKE2b-256 checksum
How to use checksums
4ab8718b088dec90afa8677e0ca6b508f066d84510fe58e97f5cf81068bc9e94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.12.13 Linux/6.17.0-1015-azure

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page