Skip to content

Comparison attributes not showing up #3697

@themreza

Description

@themreza

Current behavior

When you add products to the comparison page, none of the product attributes show up, even though the imported attributes have is_comparable set to true.

Expected behavior

It should correctly display the attributes marked to be shown in the comparison page.

Steps to reproduce the issue

Repository

Can you handle fixing this bug by yourself?

  • YES
  • NO

Which Release Cycle state this refers to? Info for developer.

Pick one option.

  • This is a bug report for test version on https://test.storefrontcloud.io - In this case Developer should create branch from develop branch and create Pull Request 2. Feature / Improvement back to develop.
  • This is a bug report for current Release Candidate version on https://next.storefrontcloud.io - In this case Developer should create branch from release branch and create Pull Request 3. Stabilisation fix back to release.
  • This is a bug report for current Stable version on https://demo.storefrontcloud.io and should be placed in next stable version hotfix - In this case Developer should create branch from hotfix or master branch and create Pull Request 4. Hotfix back to hotfix.

Environment details

  • Browser:
  • OS:
  • Node:
  • Code Version:

Additional information

To fix it, change this line https://github.com/DivanteLtd/vue-storefront/blob/master/core/modules/compare/components/Compare.ts#L13 to:

return Object.values(attributesByCode).filter((a: any) => a.is_comparable === true)

Metadata

Metadata

Labels

1: EasybugBug reportsgood first issueTasks that requires just basic understanding of Vue Storefrontvs-hackathonTasks for the Hackathon

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions