Import AttributeCombinations

Tuesday, March 31, 2020 9:41:54 PM
  • Posted: Thursday, March 5, 2020 8:10 AM
  • 11
Hello,

we have some problems by importing products with product attribute combinations. There is no suitable solution within the exported excel.
So we tried to create them with the Web API. But if we try to update the product and its attribute combination it wouldn’t extend a new combination. Other fields will be changed.

We tried the following PATCH-Request:

https://shopurl/odata/product/5e5ffb2ebad5a50001d2b4f6
  
{
  "Id": "5e5ffb2ebad5a50001d2b4f6",
   "ShortDescription": "hallo",
    "AttributeCombinations": [
        {
            "AttributesXml": "<Attributes><ProductAttribute ID=\"5e5ffb54bad5a50001d2b604\"><ProductAttributeValue><Value>5e5ffc34bad5a50001d2b71a</Value></ProductAttributeValue></ProductAttribute><ProductAttribute ID=\"5e5ffb66bad5a50001d2b633\"><ProductAttributeValue><Value>5e5ffc69bad5a50001d2b857</Value></ProductAttributeValue></ProductAttribute></Attributes>",
            "StockQuantity": 100,
            "AllowOutOfStockOrders": false,
            "Sku": "KA.556677",
            "OverriddenPrice": 5,
            "NotifyAdminForQuantityBelow": 0
        }
    ]
}
0
  • Posted: Thursday, March 5, 2020 8:55 AM
  • Team
  • 459
Hi Dennis,

Thanks a lot for post. In the case of combination attributes, as you can see in our docs, it's not possible out of the box. We didn't develop this methods when we introduced API. In fact, it can easily extended with a plugin. If you have developers in a team, you can download a source code of the "Extended API" plugin and create a method for combinations. Mentioned plugin is available here. If you don't want to spend time on it, we can create this method as a premium support service.
Best regards,
Patryk

GrandNode Team
0
  • Posted: Friday, March 6, 2020 7:24 PM
  • 11
Hello Patryk,

thanks for the information. I think we will start by developing the api on our self.
Maybe we can bring it to the marketplace afterwards.

But I have another question.

We are developing the module for Version 4.50 an I tried to download the Sample API Plugin from here:
https://docs.grandnode.com/how-to-extend-web-api-with-plugin

But I can only find the version 4.60
Could you please share a link where we can find the example for the old version 4.50?

Thank you in advance.

Dennis
0
  • Posted: Friday, March 6, 2020 8:08 PM
  • 1
You can find on github branch  - 4.50
https://github.com/grandnode/grandnode/tree/Release-4.50
0
back to top
Filters