-
-
Notifications
You must be signed in to change notification settings - Fork 450
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
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 <[email protected]>
Co-authored-by: Sven Reichel <[email protected]>
Co-authored-by: Sven Reichel <[email protected]>
Co-authored-by: Sven Reichel <[email protected]>
Co-authored-by: Sven Reichel <[email protected]>
Co-authored-by: Sven Reichel <[email protected]>
Co-authored-by: Sven Reichel <[email protected]>
@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. |
Co-authored-by: Sven Reichel <[email protected]>
Co-authored-by: Sven Reichel <[email protected]>
- more descriptive labeling/text - fixed ProductController.php:827
|
@sreichel @addison74 i've done some changes, see last commit. how is it formatting with spaces? which tool does this? i have wrong configuration? i mean with: vs can't resolve this. Could you shed some light on this? |
|
@m-michalis - the conflict is solved. The first formatting is the correct one. Please check the file again if I missed something from the docblock. |
Align variable declaration formatting for attributeId.
|
its php-cs-fixer ... check scripts section in composer.json to automatically fix it. |
|
I would like to get PR ready on the next version, as it was proposed two months ago. We have to discuss the texts used in the config area, then the title, content and buttons of the window (remained unchanged in its initial form). We will revise the code later. At first glance it looks fine but there are some getters and setters there. We'll see... |
You can change milestones too. As we have progess here thats fine. |
|
All right then. We will approve it then I will create a PR for solving the texts and especially the window which is not looking good. |







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