-
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
Product attribute not always showing up on category page #3199
Comments
In my example I am using a custom theme, but I tested the same attribute also with the |
The "takes some effort" label was added? What exactly is causing the described problem? |
@juho-jaakkola i've just added a label to set the weight of this task in Github Issues, haven't had a chance to take a deeper tech look |
I added another attribute that has a simple integer value. That one appears on the category page as expected as long as I have added it into the So could there be some problem specifically with attributes having multiple options? |
Hi there, for sure the attribute needs to be on the category pages loads the attribute metadata for the attributes that are listed in the |
The problem about the attribute labels should indeed get fixed once the issue #3220 gets fixed. |
I have a custom dropdown product attribute called
delivery_time
.I am using this helper method: https://github.com/DivanteLtd/vue-storefront/blob/master/core/modules/catalog/helpers/optionLabel.ts to display the selected attribute option within each product tile on the category page.
However, something strange happens on the page. On the first page load I do not see the attribute value at all:
After I click the filters a couple of times, the attribute appears, but only the ID of the value is displayed:
When I visit the product detail page, and come back to the category page, the value label is finally displayed as expected:
I have tried adding the
delivery_time
attribute inconfig/local.json
to these sections:entities.productList.includeFields
entities.productListWithChildren.includeFields
I have also tried whether the frontend visibility settings of the attribute within Magento 2 admin panel could affect this.
But none of these have any effect on the visibility of the attribute id nor its label.
Am I missing something, or what could explain this weird behavior?
The text was updated successfully, but these errors were encountered: