vuestorefront / vue-storefront-api

Vue.js storefront for Magento2 (and not only) - data backend
https://www.vuestorefront.io
MIT License
348 stars 338 forks source link

Price data on one of configurable_children deleted #551

Open didkan opened 3 years ago

didkan commented 3 years ago

When using api-search-query (and hence response_format=compact in the api request querystring), one of the configurable children is missing most of its pricing data.

The code that removes it is this: https://github.com/vuestorefront/vue-storefront-api/blob/1e6236984f9cf5d158ccd3535099d043768b641c/src/processor/product.js#L65-L69

We have a customized vsf-default theme that will display price data in the options dropdown on the PDP for configurable products. This breaks that. I'm not sure if this is a bug or a feature?! It can easily be "worked around" by removing the fields we want to retain from config.products.fieldsToCompress, but wanted to add an issue to at least shine a light on the "breaking change".