Caleb Evans
02/26/2020, 9:08 PM/api/navigation/v1/categorynavitems/tree
.
However, attempting to pass my custom field ID in the menu_fields
parameter (as indicated by the Categories.Model code) does not seem to do anything. The response JSON still contains only the native (non-custom) Commerce Category fields.
https://www.my20192site.com/api/navigation/v1/categorynavitems/tree?currency=USD&site_id=3&c=1234567_SB2&exclude_empty=false&use_pcv=F&pcv_all_items=null&language=en&max_level=3&menu_fields=internalid,name,sequencenumber,displayinsite,custrecord_hide_in_website_menu
Expected Result:
{
"data": [
{
"categories": [],
"_debug_requestTime": 1220,
"fullurl": "/grey-flooring",
"internalid": "100",
"level": "1",
"name": "Grey Flooring",
"parentIdPath": "",
"custrecord_hide_in_website_menu": "T"
},
...
]
}
Actual Result:
{
"data": [
{
"categories": [],
"_debug_requestTime": 1220,
"fullurl": "/grey-flooring",
"internalid": "100",
"level": "1",
"name": "Grey Flooring",
"parentIdPath": ""
},
...
]
}
I can reproduce this issue in Postman, as well as checking the SC.CATEGORIES
object in my web store. Any insight?badgerdigital
02/26/2020, 9:23 PMbadgerdigital
02/26/2020, 9:24 PMSteve Goldberg
02/26/2020, 9:49 PMkkennedydesign
02/26/2020, 10:43 PMPabloZ
02/27/2020, 2:19 PMPabloZ
02/27/2020, 2:21 PMSteve Goldberg
02/27/2020, 2:22 PMPabloZ
02/27/2020, 2:28 PMbadgerdigital
02/27/2020, 3:22 PMCaleb Evans
02/27/2020, 6:00 PM"type":"array"
) to store any additional custom metadata for any relevant categories. Then I could read from that data from the front-end Categories.Model, match each row with the relevant category, and implement whatever logic/behavior I want from thereSteve Goldberg
02/27/2020, 6:16 PMbadgerdigital
02/27/2020, 6:19 PM