-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Unable to add new options to swatch attribute #11032
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
This still doesn't work in Magento 2.2.0. |
I just fount the source of the problem: So it seems to me like options for visual (and text) swatches are supposed to be created differently, but I can't figure out how. |
@MidnightDesign, thank you for your report. |
I am preparing a PR for this one so if you can assign it to me please #SQUASHTOBERFEST |
Same issue here, I didn't dig much into the problem but renaming the function beforeBeforeSave to beforeSave fix the problem. |
I confirm the issue on However, the method of the plugin So the solution was to create a di preference of the existing plugin + create a own plugin into a di.xml of a custom module. |
The issue has been fixed and delivered to 2.1-develop and 2.2-develop branches |
it is not fixed in current 2.3.1!
fails with a lock wait timeout on swatch attributes fix from sylvainraye works |
Faced the same issue 2.3.5-p1
Not sure is it correct, but this seems to be work solution |
ProductAttributeOptionManagementInterface#add()
doesn't do anything.Preconditions
Magento 2.1.9
Create a product attribute named "color" and set its type to "Visual Swatch". Also make sure it has at least one option. Otherwise you'll run into a different issue.
Steps to reproduce
Consider the following class:
Expected result
$attributeOptionCreator->createAttributeOption('color', 'Blue')
adds a new option to the attribute.Actual result
The option is not added to the attribute.
The text was updated successfully, but these errors were encountered: