SwagShopwarePwa icon indicating copy to clipboard operation
SwagShopwarePwa copied to clipboard

Provide all filtering possibilities of product-listing

Open Skepton opened this issue 2 years ago • 0 comments

Currently i've found that there are several parameters not included in the /pwa/page endpoint that one might want to use from for example the product-listing endpoint: https://shopware.stoplight.io/docs/store-api/cf2592a37b40b-fetch-a-product-listing-by-category.

You can currently filter by page (p), manufaturer, price and some other attributes (examples from the link above), but it's not possible to use the general "filter" attribute to make "custom" filters such as filtering out all products that are in stock or products with certain custom_fields set.

An alternative is to just fetch category id from the /pwa/page endpoint and make another request to the product-listing to get the actual product listing content etc. This would not be ideal, and it would be nice to have the possibility to use the full power of the store-api through the pwa/page endpoint!

Skepton avatar Jan 17 '23 10:01 Skepton