shopware icon indicating copy to clipboard operation
shopware copied to clipboard

API aggregations for category

Open andre9x opened this issue 1 year ago • 2 comments

PHP Version

8.1

Shopware Version

6.6.3.0

Affected area / extension

Platform(Default)

Expected behaviour

Similar to product-listing, I expect the self-defined values or aggregations to appear under aggregations.

Actual behaviour

Currently I can only define my own aggregations under /store-api/product-listing, but not under /store-api/category.

How to reproduce

Payload:

{
  "associations": {
    "options": {
      "associations": {
        "group": {}
      }
    },
    "media": {},
    "seoUrls": {}
  },
  "order": "name-asc",
  "aggregations": [
    {
      "name": "parent_options",
      "type": "terms",
      "field": "parentId",
      "aggregation": {
        "name": "parent_option_ids",
        "type": "entity",
        "definition": "property_group_option",
        "field": "options.id"
      }
    }
  ]
}

for product-listing endpoint everything works as expected /store-api/product-listing/<categoryId>

in my case i need the category endpoint for the whole page building process (listing with CMS) /store-api/category/<categoryId> but here the defined aggregation parent_options is not available within the result. (cmsPage > sections > blocks > slots > data > listing > aggregations)

is this inteded or a bug?

andre9x avatar Aug 23 '24 09:08 andre9x

[public] Shopware automated response: This issue is linked to the internal issue https://shopware.atlassian.net/browse/NEXT-38031.

This link is only intended for Shopware employees and for internal use only.

[created from NEXT-38031, comment 489687]

shopwareBot avatar Aug 23 '24 09:08 shopwareBot

[public] Hello,

Within our company roadmap and work capacity, we try to address each bug or improvement request but admit that not each one will be resolved. To continue our culture of honesty and openness, we are closing this issue to focus on our roadmap on behalf of all Shopware users.

If you feel like this issue is still impacting you, please create a new issue and let us know. Thank you again for your valuable feedback.

[created from NEXT-38031, comment 549910]

shopwareBot avatar Apr 07 '25 07:04 shopwareBot