-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
Made swatches color-picker configurable #4229
base: main
Are you sure you want to change the base?
Conversation
this has already been discussed in the PR; if an attribute is configured as swatch there must not be another configuration to enable the color picker (as @ADDISON74 wanted). |
From my POV the current implementation is not complete. E.g. I dont need or want a color picker for "Size" attributes. That makes no sense to me. Further ... with an additional configuration we could add a file-upload for selected swatchable attributes. This would be pretty cool for me. This PR does not change the current behavoir or breaks anything. It only allows a more precise configuration. |
For me it remains very cumbersome and not very intuitive but if we want it, must be explained well in the documentation that you need to configure the attribute as Swatch + configure it as a color picker to activate it. +1 for implent image upload |
To avoid this the install script was added ... by default every swatchable attribute will show the color-picker. So nothing changes. You have to manually de-select the attributes to not show the color-picker. Edit: o/c some emplaination should be added to docs. |
this PR add a new configuration to enable the color picker for specific attribute not to disable it, so attributes selected as Swatch not show the color picker by default. correct? |
This install-script was added to keep the color-picker enabled for all swatch-attributes. You have to manually de-select them to disable the color picker. (thats why i said i does not change anything for existing installations) |
I have to read again the comments I had on #3686 to understand the change, then I'll give you feedback. empiricompany's initial proposal was not bad, but being a complex change in the code, there were no fresh forces to carry things through to the end. Anyway the effort made is appreciated. |
...figurableSwatches/Model/System/Config/Source/Catalog/Product/Configattribute/Colorpicker.php
Outdated
Show resolved
Hide resolved
please check this behavior: |
Thanks. I know save config twice is not ideally. I have an idea how to fix it, but I am not sure if it worth to spent time on it - as it probably not often changes. Add JS ...
|
This PR works and thank you for reading my comments in the PR #3686. There I tried to convince the participants without success. Indeed, two simultaneous saves are required to set the configuration of an attribute. However, I consider that the OpenMage implementation proposed in #3686 should have been inspired by Magento 2, but for that I will propose a separate discussion here #4231. |
in my opinion two separate saves is not intuitive, for this reason I remain of the idea that a new configuration is not needed but that simply, in the case of an attribute that does not use colors like size, you don't pick any color and upload the individual images as default. |
@empiricompany if we want to add a file-upload option, we have to select which attribute uses color-picker or upload. I'd like to have it in ... maybe you have an idea for some javascript? |
Description (*)
... as suggested in related pull request.
Related Pull Requests