-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
1: EasybugBug reportsBug reportsgood first issueTasks that requires just basic understanding of Vue StorefrontTasks that requires just basic understanding of Vue Storefrontvs-hackathonTasks for the HackathonTasks for the Hackathon
Milestone
Description
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
developbranch and create Pull Request2. Feature / Improvementback todevelop. - This is a bug report for current Release Candidate version on https://next.storefrontcloud.io - In this case Developer should create branch from
releasebranch and create Pull Request3. Stabilisation fixback torelease. - 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
hotfixormasterbranch and create Pull Request4. Hotfixback tohotfix.
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
Assignees
Labels
1: EasybugBug reportsBug reportsgood first issueTasks that requires just basic understanding of Vue StorefrontTasks that requires just basic understanding of Vue Storefrontvs-hackathonTasks for the HackathonTasks for the Hackathon