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

Price data on one of configurable_children deleted  #551

Description

@didkan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions