Skip to main content

A plugin for Enthusiast that provides a WooCommerce products importer.

Project description

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 = {
    ...
    "WooCommerce": "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
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

enthusiast_source_woocommerce-1.0.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

enthusiast_source_woocommerce-1.0.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file enthusiast_source_woocommerce-1.0.1.tar.gz.

File metadata

  • Download URL: enthusiast_source_woocommerce-1.0.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.11 Linux/6.11.0-1018-azure

File hashes

Hashes for enthusiast_source_woocommerce-1.0.1.tar.gz
Algorithm Hash digest
SHA256 71f5f374882bd662d2884b7a64ddef8e811519215ad9a656de330e7e22f2c3ba
MD5 46dd76b6f9c8dbd7cdb368b7fcb44130
BLAKE2b-256 d2cb2058ea8892d0e5cbe74855992b6221031a1678957a50522b9bb66e786a26

See more details on using hashes here.

File details

Details for the file enthusiast_source_woocommerce-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for enthusiast_source_woocommerce-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 80aecdcf25b3e4bdf9e89d7c935612c2dfe98c1aae7b70eb3be9aacdb7db63de
MD5 c1d56b866f14ae3415f3b2cc4f65f5d5
BLAKE2b-256 745c74a1c017c6533dd89e135675f2e3ec79cab4f39f099a31e436a3e7e68185

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page