Closed
Description
Summary of the issue (*)
In my webshop I have games and this games have different editions and a used and a new state.
Now I have one configurable product for example: "007 From Russia With Love" with a couple of simple products under it:
(Attribute) System
- PlayStation 2
- GameCube
(Attribute) State
- New
- Used
In my product listings I only show the configurable products but the product URL is changed to the specific system attribute in my condition it is: http://local.magento/007-from-russia-with-love.html#142=345 so it links to the specific simple product with that system already selected.
The price and the selected system attribute is correct on the productpage only the product image is not selected for this simple product. It takes the default image of the configurable product.
Preconditions (*)
- Magento 2.3.3
- MySQL 5.6.23
- Ubuntu 16.04.5 LTS (Docker container: https://hub.docker.com/r/alexcheng/magento2/)
- PHP 7.2.12
Steps to reproduce (*)
- Make a configurable product with a random image.
- Make 2 simple products under it with 2 attributes System,State(See summary) and the simple products need different images.
- Link to the productpage of the configurable product with # query like http://local.magento/007-from-russia-with-love.html#142=345 so that a system is already selected. Ofcourse change the '142' to your attribute super id and the '345' with a option of the attribute.
- Check if it shows image of Configurable product or from simple product.
Expected result (*)
Actual result (*)
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.4-develop branchGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentIndicates original Magento version for the Issue report.The issue has been reproduced on latest 2.4-develop branch
Activity
m2-assistant commentedon Jan 21, 2020
Hi @kylianleemkuil. Thank you for your report.
To help us process this issue please make sure that you provided the following information:
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x releaseFor more details, please, review the Magento Contributor Assistant documentation.
@kylianleemkuil do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
[-]Wrong selected product image when query url param configurable product[/-][+]BUG: Wrong selected product image when query url param configurable product[/+]m2-assistant commentedon Jan 23, 2020
Hi @engcom-Echo. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇
1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
Details
If the issue has a valid description, the labelIssue: Format is valid
will be added to the issue automatically. Please, edit issue description if needed, until labelIssue: Format is valid
appears.2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add
Issue: Clear Description
label to the issue by yourself.3. Add
Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.4. Verify that the issue is reproducible on
2.4-develop
branchDetails
- Add the comment@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure.- If the issue is reproducible on
2.4-develop
branch, please, add the labelReproduced on 2.4.x
.- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
5. Add label
Issue: Confirmed
once verification is complete.6. Make sure that automatic system confirms that report has been added to the backlog.
engcom-Echo commentedon Jan 23, 2020
Hi @kylianleemkuil. Thank you for your report.
Unfortunately, I could not reproduce this behavior.
Actual result:
I have to close it.
Please feel free to comment, reopen or create new ticket according to the Issue reporting guidelines
if you are still facing this issue on the latest
2.4-develop
branch. Thank you for collaboration.kylianleemkuil commentedon Jan 23, 2020
@magento give me 2.4-develop instance
magento-engcom-team commentedon Jan 23, 2020
Hi @kylianleemkuil. Thank you for your request. I'm working on Magento 2.4-develop instance for you
magento-engcom-team commentedon Jan 23, 2020
Hi @kylianleemkuil, here is your Magento instance.
Admin access: https://i-26473-2-4-develop.instances.magento-community.engineering/admin_db97
Login:
0f55a834
Password:be97e6333acb
Instance will be terminated in up to 3 hours.
kylianleemkuil commentedon Jan 23, 2020
@engcom-Echo I reproduced this bug on the 2.4 develop branch
Result:

As you can see if I use the # as param in the URL the Select field changes and the price also. But the product image is not changed.
This is how it supposed to work:
I noticed in Magento\ConfigurableProduct\view\frontend\web\js\configurable.js in function _changeProductImage() that "galleryObject" is not defined when using the # param.
Reopen please
engcom-Echo commentedon Jan 23, 2020
Hi, @kylianleemkuil. Thank you for the clarification.
24 remaining items