-
-
Notifications
You must be signed in to change notification settings - Fork 449
Media Gallery behavior when duplicating a product: Keep/Skip product images #5083
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
base: main
Are you sure you want to change the base?
Conversation
…copy the images or not. added a configuration option “Skip Images on Duplicate” and a small prompt on Duplicate when the source product has images.
# Conflicts: # app/code/core/Mage/Catalog/Model/Product.php
|
Much thanks. Please run phpcs-fixer and phpstan. Some errors should be fixed via suggestions. I'd add constants for options, of Please revert changes for trailing spaces. |
|
@m-michalis do you have time to re-review? Next release is planed in a few days. Would be nice to have it in. |
Co-authored-by: Sven Reichel <github-sr@hotmail.com>
Co-authored-by: Sven Reichel <github-sr@hotmail.com>
Co-authored-by: Sven Reichel <github-sr@hotmail.com>
Co-authored-by: Sven Reichel <github-sr@hotmail.com>
Co-authored-by: Sven Reichel <github-sr@hotmail.com>
Co-authored-by: Sven Reichel <github-sr@hotmail.com>
Co-authored-by: Sven Reichel <github-sr@hotmail.com>
@sreichel i was overloaded for the past month. i'll try committing some hours in the next weeks. |
|
I'll take the time to check a few PRs, this being one of them. @m-michalis: PHP CS Fixer errors are easy to fix, the GitHub interface shows what they are, unless you use the command line in a DDEV test environment. Also please let me know your opinion about this implementation https://github.com/MahoCommerce/maho/pull/345/files. Do we need a simple or configurable one? |
I use DDEV. any tips?
Opinion on what? From my experience it depends on the store. I've only seen 2 cases required, "always ask" and "skip images". I don't believe a store would use "always copy images" on product clone though.
|
|
|
I appreciated the prompt is correctly displayed only when the product has images; and it is skipped when there are no images, which improves the UX significantly. Great work, just check my previous comments and improve. |
|







Description
I'm splitting up the work in 3 PRs after @addison74's comment in
Parts:
image,small_image,thumbnailattributesThis PR: Keep/Skip product images
System > Configuration > Catalog > Product Image > Skip Images on Duplicate(always ask, skip, keep)Questions or comments
Need help in adding tests