Hi there,
Im totally new to n8n and need some help learning this. I want to create an automation where I schedule the updates of the stock quantity on wordpress/woocommerce website B, C and D based on the stock of website A. It wil look if the product exists (based on SKU on website A) on website B, C and D. If that is valid I want to update the stock quantity of these products on the other websites based on the stock quantity from website A.
{
“nodes”: [
{
“parameters”: {
“rule”: {
“interval”: [
{
“triggerAtHour”: 18
}
]
}
},
“type”: “n8n-nodes-base.scheduleTrigger”,
“typeVersion”: 1.2,
“position”: [
-60,
420
],
“id”: “5bbc8ee9-bf61-4151-9deb-6945be5ba13b”,
“name”: “Schedule Trigger”
},
{
“parameters”: {
“resource”: “product”,
“operation”: “update”,
“productId”: “”,
“updateFields”: {
“manageStock”: true,
“stockQuantity”: “={{ 1 }}”
},
“dimensionsUi”: {},
“imagesUi”: {},
“metadataUi”: {}
},
“type”: “n8n-nodes-base.wooCommerce”,
“typeVersion”: 1,
“position”: [
380,
420
],
“id”: “372a472c-43c6-4c96-8f9b-6ef08c7c3a8e”,
“name”: “Website B”
},
{
“parameters”: {
“operation”: “getAll”,
“returnAll”: true,
“options”: {}
},
“type”: “n8n-nodes-base.wooCommerce”,
“typeVersion”: 1,
“position”: [
160,
420
],
“id”: “7e63b083-9b12-4ea6-abbd-c80a54dedc3d”,
“name”: “Website A”
}
],
“connections”: {
“Schedule Trigger”: {
“main”: [
[
{
“node”: “Website A”,
“type”: “main”,
“index”: 0
}
]
]
},
“Website A”: {
“main”: [
[
{
“node”: “Website B”,
“type”: “main”,
“index”: 0
}
]
]
}
},
“pinData”: {
“Schedule Trigger”: [
{
“timestamp”: “2025-01-21T11:30:23.435+01:00”,
“Readable date”: “January 21st 2025, 11:30:23 am”,
“Readable time”: “11:30:23 am”,
“Day of week”: “Tuesday”,
“Year”: “2025”,
“Month”: “January”,
“Day of month”: “21”,
“Hour”: “11”,
“Minute”: “30”,
“Second”: “23”,
“Timezone”: “Europe/Amsterdam (UTC+01:00)”
}
]
},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “c6a423b4c9eae452bea69d6ccda70e6f1c2af83537465164856fe7914bb7ac19”
}
}