-
-
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
302034c
When duplicating a product that has images, ask the admin whether to …
m-michalis 9b040e6
trying not to introduce extra param
m-michalis 8cccafc
Merge remote-tracking branch 'upstream/main' into feature/prod-clone-ask
m-michalis b93cfb1
Merge branch 'main' into feature/prod-clone-ask
sreichel 9ff82e7
Merge branch 'main' into feature/prod-clone-ask
sreichel 3194bc0
Update app/code/core/Mage/Catalog/Model/Resource/Product.php
m-michalis be7015c
Update app/code/core/Mage/Catalog/Model/Resource/Product.php
m-michalis 44f2fba
Update app/code/core/Mage/Catalog/Helper/Image.php
m-michalis f16ad66
Update app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit.php
m-michalis cfa49be
Update app/code/core/Mage/Catalog/Model/Resource/Product.php
m-michalis 02512cd
Update app/code/core/Mage/Catalog/Model/Resource/Product.php
m-michalis 5c9f625
Update app/code/core/Mage/Catalog/Model/Product.php
m-michalis be445af
Merge branch 'main' into feature/prod-clone-ask
sreichel 706a0d5
Merge remote-tracking branch 'upstream/main' into feature/prod-clone-ask
m-michalis 7c01a99
- cs fixes
m-michalis 3a90931
in adminhtml (at least) for a product to be duplicable, it should exi…
m-michalis f8e244f
Merge branch 'main' into feature/prod-clone-ask
addison74 5de8bd6
Merge branch 'main' into feature/prod-clone-ask
sreichel 810f0b7
ux better labeling on config
m-michalis e249255
ux better labeling on config
m-michalis e8ece8c
- reworked some logic + comments
m-michalis 25c3b1d
Merge branch 'main' into feature/prod-clone-ask
addison74 822ebda
Refactor variable declaration for attributeId
addison74 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
app/code/core/Mage/Adminhtml/Model/System/Config/Source/Catalog/ImageDuplicate.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| <?php | ||
|
|
||
| class Mage_Adminhtml_Model_System_Config_Source_Catalog_ImageDuplicate { | ||
|
|
||
|
|
||
| public function toOptionArray() | ||
| { | ||
| return [ | ||
| ['value' => -1, 'label' => Mage::helper('adminhtml')->__('Always ask')], | ||
| ['value' => 0, 'label' => Mage::helper('adminhtml')->__('Copy images to the new product')], | ||
| ['value' => 1, 'label' => Mage::helper('adminhtml')->__('Duplicate product without images')], | ||
| ]; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.