Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

Price data on one of configurable_children deleted #551

Open
didkan opened this issue Feb 11, 2021 · 0 comments
Open

Price data on one of configurable_children deleted #551

didkan opened this issue Feb 11, 2021 · 0 comments

Comments

@didkan
Copy link
Contributor

didkan commented Feb 11, 2021

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:

fieldsToCompress.forEach(field => {
if (item._source[field] === subItem[field]) {
delete subItem[field] // remove fields that are non distinct
}
})

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".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant