Skip to content

BUG: Wrong selected product image when query url param configurable product #26473

Closed
@kylianleemkuil

Description

@kylianleemkuil

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

  1. PlayStation 2
  2. GameCube

(Attribute) State

  1. New
  2. 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 (*)

  1. Magento 2.3.3
  2. MySQL 5.6.23
  3. Ubuntu 16.04.5 LTS (Docker container: https://hub.docker.com/r/alexcheng/magento2/)
  4. PHP 7.2.12

Steps to reproduce (*)

  1. Make a configurable product with a random image.
  2. Make 2 simple products under it with 2 attributes System,State(See summary) and the simple products need different images.
  3. 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.
  4. Check if it shows image of Configurable product or from simple product.

Expected result (*)

  1. alt text

Actual result (*)

  1. alt text

Metadata

Metadata

Assignees

Labels

Component: ConfigurableProductFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReported on 2.3.3Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions