-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comparison attributes not showing up #3697
Comments
It is not directly a bug, it is a question of configuration. Example for..
have fun =) Edit:
|
Why use 1 and 0 when in most of the places type boolean is defined with true/false? I think this classifies as a bug since according to the development guides, it should return true/false. Also, to adhere to the platform-agnostic guidelines, the system should uniformly follow types defined in ElasticSearch, and not in the proxy APIs (like vue-storefront-api). Inconsistency: vs. For backward-compatibility, perhaps we can change the fix to a check that accepts 1/true and 0/false. |
So actually you are right, magento 1 & 2 standard indexers are using true / false for there variables. return Object.values(attributesByCode).filter((a: any) => a.is_comparable===true) unfortunately standard data of https://test.storefrontcloud.io is not representative with 0 1 data format. |
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?
Which Release Cycle state this refers to? Info for developer.
Pick one option.
develop
branch and create Pull Request2. Feature / Improvement
back todevelop
.release
branch and create Pull Request3. Stabilisation fix
back torelease
.hotfix
ormaster
branch and create Pull Request4. Hotfix
back tohotfix
.Environment details
Additional information
To fix it, change this line https://github.com/DivanteLtd/vue-storefront/blob/master/core/modules/compare/components/Compare.ts#L13 to:
The text was updated successfully, but these errors were encountered: