-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Dropdown on configurable products page is missing when using caches [Magneto 2.1.0] #5241
Comments
UpdateAfter flushing caches, the dropdown is not working only when accessing the product page through any category page. When accessing it through a widget ("Product list") or search, dropdown is displayed correctly. |
I think that this issue is related to "Collections Data" cache. Please, have a look at the issue. |
@RG-1 i have faced this issue too. i need flush magento cache, it's work for awhile, after that the "Size" dropdown disappear again. |
I am also experiencing this same issue. Clearing the cache temporarily resolves the issue. I find that if you clear the cache, visit a category page first, and then a configurable product page you'll be able to reproduce the issue every time. |
I tracked the issue down to this method Magento\ConfigurableProduct\Model\Product\Type\Configurable::getConfigurableAttributes It caches configurable attributes and their options. What happening for us is that when browsing a category page, only a subset of the configurable attributes are needed (i.e. for layered nav). That cache entry gets saved. Then when you browse to a product page, it picks up that cache entry from the category page. That cache entry doesn't contain ALL the config attributes, so the dropdowns are empty. There really needs to be 2 cache entries. One specifically for the category page, and one for the production page. Right now it's just cached by product and store ID. |
Have the same issue, is there a workaround? |
One workaround is Another way is to seperate cache identifiers for catalog and product view. Inject a request object in the constructor (don't judge me for placing controller code in the model), change the
Also you have to change the |
@RG-1, thanks for reporting this issue |
Hi @IlnitskiyArtem |
@korostii, Excuse me, but I didn't understand the comment. |
Hi @IlnitskiyArtem, maybe you should've read it more carefully. Result: "select won't appear", meaning the attribute's dropdown is not displayed at all (not as swatch, not as dropdown, just the label), but only on product page. Do you speak English okay or are you using a translator? I can duplicate the description in Russian, if that'd be easier for you to understand. |
Hi @IlnitskiyArtem, the symptoms are the same. If you'd like a different issue, here, have it: #9923 has exactly the same symptoms I do. |
@RG-1, thank you for your report. |
Steps to reproduce
Expected result
Actual result
Follow these steps, to see dropdown on just one product
The text was updated successfully, but these errors were encountered: