-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Upgrading to 2.1.7 changed dropdown attributes to swatches #9923
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
Comments
Whis seems to be a duplicate of #9832. Please check if you have uses of |
Hi @roseofgold, thank you for your report. We checked the opposite case (swatch attributes being converted to dropdowns) within #9832 and we couldn't reproduce the issue. |
@korostii it is very similar to #9832. It is the opposite case as @antboiko said. I have not extended the swatches module. I have checked the vendor files ( Is there somewhere else I should check? Novice Magento coder here |
I'd start in
Any chance you could find amore experienced colleague to lend you a hand and help you find the issue? |
I will see if I can find some help on StackExchange or through my PHP groups. |
I have searched through my files. The only place that isProdustHasSwatchAttribute or getRendererTemplate shows up is in the vendor files. |
Ok, so. I had this reproduced on 2.1.7 CE. Steps to reproduce: save the configurable attribute with frontend input "Text Swatch", then switch back to dropdown and save again. In contrast, an attribute created before upgrade from 2.1.5 to 2.1.7 shows up okay. Additional considerations: As far as I can tell the issue is introduced in 2.1.6 and remains in 2.1.7 "Well-tested, backwards-compatible, non-breaking patch releases." Yeah, right. |
@korostii Thank you for tracking that down. However that still didn't work for me. I did have NULL entries for the attribute in that table. I deleted those line, flushed cache and it still doesn't show up. Is there another table that I should be looking in as well? I'm about ready to recreate the option to not have to deal with it anymore. Thankfully this is an option for me at this time. |
Not that I know of, unfortunately. Flushing P.S. I wish the Magento guys would be able to catch this before the release. I think some thorough code review might've spotted this bug. |
Why is this issue marked as 'needs update'. This is clearly still an open issue and has been described perfectly to standards |
It's fixed in 2.1.8 but if you don't want to upgrade then you can patch this in: b84fe27 |
I had color swatch but after the update from 2.1.7 to 2.1.8 it became dropdown and I cannot turn it back to swatch. |
@OZZlE the fix in file vendor\magento\module-swatches\view\adminhtml\templates\catalog\product\attribute\text.phtml breaks my excisting Text swatch. I suddenly have an extra column Description. After replacing the file with a copy of 2.1.7 it solved. Can you explain why this file has been changed and why the extra column is there? First image is with file 2.1.8, second with 2.1.7 |
@GuidoHub as far as I an tell both the columns "Swatch" & "Description" are required where "Swatch" is the actual text the buttons get and the "Description" is the title text. In 2.1.7 it lacks the "Swatch" column and only shows the "Description" column (without any hint). So what you are saving then is essentially NULL on the "Swatch" and then things start to go wrong. I did not investigate it further than that but saw in the table that I do not work at Magento so I cannot say why. |
Hi @roseofgold! I had the same bug. After upgrading from 2.1.2 to 2.1.8, Size attribute which was dropdown was used as Swatch on Configurable Product Pages. I had Null values for the attribute option_ids in |
Closed because duplicate #12695 |
Hi @roseofgold. Thank you for your report.
The fix will be available with the upcoming 2.2.6 release. |
Hi @roseofgold. Thank you for your report. The fix will be available with the upcoming 2.3.0 release. |
Preconditions
Steps to reproduce
Expected result
<div class="field configurable required">
Actual result
<div class="swatch-opt" data-role="swatch-options">
The text was updated successfully, but these errors were encountered: