If a subcategory is not shown correctly in the Cart: Check if in the Admin Cart Configuration "GetStructure" is true, even if in the tool is set as "false".
To do so, you have to query the Integration_Administration object and check if any Administration Cart Configuration row has that value = true.