I have a question Re:itemMatrix, Items & Attributes please?

darryl_ssdarryl_ss Member Posts: 115
edited January 18 in Development

Hi there,

Is there any way to extend the "Items" in "ItemMatrix" with the "ItemAttributes" from "Item"?

So that you would have something like below:


"ItemMatrix": {
    "itemMatrixID": // Some Matrix Item,
    "Items": {
        "Item": [
            {
                itemID: // Some Item,
                "ItemAttributes": {
			"attribute1": "BLACK",
			"attribute2": "",
			"attribute3": "",
			"itemAttributeSetID": "3",
                }
            },
{
                itemID: // Some Item,
                "ItemAttributes": {
			"attribute1": "GREEN",
			"attribute2": "",
			"attribute3": "",
			"itemAttributeSetID": "3",
                }
            }                               
        ]
    }
}


If not, what would you suggest to be the best way to achieve this?

Would this be as below:

  1. Pull the matrixItem
  2. Pulling the individual Items found in the matrixItem
  3. Create a new object with the relevant information.


Or could anybody suggest a better way of matching up the relevant details?

Post edited by darryl_ss on
Sign In or Register to comment.