Issue with operation create a product Shopify API

I would like to add for example the price, barcode, SKU, quantity etc …
All fields that I cannot find from the add fields menu.
How can I add them?
Thank you.

Workflow

Output returned by the last node

[
  {
    "id": 7854601732321,
    "title": "Prodotto test 1",
    "body_html": " Descrizione HTML prodotto test 1",
    "vendor": "Brand 1",
    "product_type": "Abbigliamento",
    "created_at": "2022-09-28T22:14:55+02:00",
    "handle": "prodotto-test-5",
    "updated_at": "2022-09-28T22:14:55+02:00",
    "published_at": "2022-09-28T22:14:55+02:00",
    "template_suffix": null,
    "status": "active",
    "published_scope": "web",
    "tags": "",
    "admin_graphql_api_id": "gid://shopify/Product/7854601732321",
    "variants": [
      {
        "id": 43363358015713,
        "product_id": 7854601732321,
        "title": "Default Title",
        "price": "0.00",
        "sku": "",
        "position": 1,
        "inventory_policy": "deny",
        "compare_at_price": null,
        "fulfillment_service": "manual",
        "inventory_management": null,
        "option1": "Default Title",
        "option2": null,
        "option3": null,
        "created_at": "2022-09-28T22:14:55+02:00",
        "updated_at": "2022-09-28T22:14:55+02:00",
        "taxable": true,
        "barcode": null,
        "grams": 0,
        "image_id": null,
        "weight": 0,
        "weight_unit": "kg",
        "inventory_item_id": 45446904217825,
        "inventory_quantity": 0,
        "old_inventory_quantity": 0,
        "requires_shipping": true,
        "admin_graphql_api_id": "gid://shopify/ProductVariant/43363358015713"
      }
    ],
    "options": [
      {
        "id": 9969992663265,
        "product_id": 7854601732321,
        "name": "Title",
        "position": 1,
        "values": [
          "Default Title"
        ]
      }
    ],
    "images": [],
    "image": null
  },
  {
    "id": 7854601830625,
    "title": "Prodotto test 2",
    "body_html": " Descrizione HTML prodotto test 2",
    "vendor": "Brand 2",
    "product_type": "Abbigliamento",
    "created_at": "2022-09-28T22:14:56+02:00",
    "handle": "prodotto-test-6",
    "updated_at": "2022-09-28T22:14:56+02:00",
    "published_at": "2022-09-28T22:14:56+02:00",
    "template_suffix": null,
    "status": "active",
    "published_scope": "web",
    "tags": "",
    "admin_graphql_api_id": "gid://shopify/Product/7854601830625",
    "variants": [
      {
        "id": 43363358114017,
        "product_id": 7854601830625,
        "title": "Default Title",
        "price": "0.00",
        "sku": "",
        "position": 1,
        "inventory_policy": "deny",
        "compare_at_price": null,
        "fulfillment_service": "manual",
        "inventory_management": null,
        "option1": "Default Title",
        "option2": null,
        "option3": null,
        "created_at": "2022-09-28T22:14:56+02:00",
        "updated_at": "2022-09-28T22:14:56+02:00",
        "taxable": true,
        "barcode": null,
        "grams": 0,
        "image_id": null,
        "weight": 0,
        "weight_unit": "kg",
        "inventory_item_id": 45446904316129,
        "inventory_quantity": 0,
        "old_inventory_quantity": 0,
        "requires_shipping": true,
        "admin_graphql_api_id": "gid://shopify/ProductVariant/43363358114017"
      }
    ],
    "options": [
      {
        "id": 9969992761569,
        "product_id": 7854601830625,
        "name": "Title",
        "position": 1,
        "values": [
          "Default Title"
        ]
      }
    ],
    "images": [],
    "image": null
  }
]

Information on your n8n setup

Thanks for this great tool!!!

Hey @Kenlog,

Welcome to the community :raised_hands:

I was just taking a look at the node and it looks like we are missing the variants / inventory side of things which is where you would set the price, sku and other parts.

Oddly though I have taken a quick look at the code for the node and we have variants there but we currently have it commented out, I will have a chat with the chap that made the node to see why this was but at the moment the only thing I can think of for now would be to use the HTTP Request node and add the products to Shopify that way.

2 Likes

Hi @Jon, yes I have using the HTTP request as you suggested, in this way I was able to create the products with all the fields.

A little hint, for nodes with partial functionality to add a “development in progress” label or something else, in this way other developers could contribute as well as inform users.

2 Likes

Hey @Kenlog,

It isn’t really a “development in progress” thing, The Shopify node was made 2 years ago and would have been made to fit the requirement that was requested at the time. We have this with a few of the older nodes and have recently started to go through fleshing them out and making them better.

We are of course always open to pull requests to add new features to existing nodes, For this one when I have a bit more time I am going to take a look and see what is needed to add the variants into the node so we can have this as to me it seemed really odd that it wasn’t there.

1 Like

Hi, @Jon
Were you able to check on this. i am badly looking this node to work, I was eyeing this to be fixed in recent update.
Do you have any idea if we may get the SKU, Barcode, price etc in near future.

Hey @Himanshu,

Welcome to the community :cake:

This isn’t something that is on my immediate list of things to handle and I have not seen any plans yet to change this but we do updates weekly so it could be that someone gets round to it.

Hi i also hope about this node to work.

So we can create variants based on the product ID etc.

Kind regards

@Jon : where does the Shopify Node upgrade stand in the Roadmap?

Hey @Kam,

It isn’t something that I can see changing in the immediate future but our team is a bit bigger now so we might be able to get to it a bit sooner during one of our backlog days.