diff --git a/README.md b/README.md index 8819279..9b9b590 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ The integrate script: | Consumer Key | From WooCommerce → Settings → Advanced → REST API | | Consumer Secret | Paired with Consumer Key | -**Important:** Base URL must be `https://shop.hanssonit.se/wp-json/wc/v3/`. +**Important:** Base URL is the WooCommerce REST API URL, e.g. `https://example.com/wp-json/wc/v3/`. The API key must have at least Read permission. The user the key is bound to must be an Administrator or have equivalent capabilities. diff --git a/nodes/woocommerce-config.html b/nodes/woocommerce-config.html index a63e9ee..43d64c8 100644 --- a/nodes/woocommerce-config.html +++ b/nodes/woocommerce-config.html @@ -3,7 +3,7 @@ category: "config", defaults: { name: { value: "" }, - baseUrl: { value: "https://shop.hanssonit.se/wp-json/wc/v3", required: true } + baseUrl: { value: "https://example.com/wp-json/wc/v3", required: true } }, credentials: { consumerKey: { type: "text" }, @@ -25,7 +25,7 @@
- +
@@ -47,7 +47,7 @@

Details

Configure your WooCommerce store connection.

diff --git a/nodes/woocommerce-config.js b/nodes/woocommerce-config.js index 7917d21..735fb30 100644 --- a/nodes/woocommerce-config.js +++ b/nodes/woocommerce-config.js @@ -8,7 +8,7 @@ module.exports = function (RED) { RED.nodes.createNode(this, config); const node = this; - node.baseUrl = (config.baseUrl || "https://shop.hanssonit.se/wp-json/wc/v3").replace(/\/+$/, ""); + node.baseUrl = (config.baseUrl || "https://example.com/wp-json/wc/v3").replace(/\/+$/, ""); node.consumerKey = config.consumerKey || ""; node.consumerSecret = config.consumerSecret || "";