Skip to content

Autoselecting configurable product options does not work with the swatches module enabled #2746

Closed
@tzyganu

Description

@tzyganu

Preconditions:

  • magento v2.0.0 installed
  • catalog module version:
    • 2.0.3 in module.xml
    • 100.0.2 in composer.json
  • configurable products module version:
    • 2.0.0 in module.xml
    • 100.0.2 in composer.json
  • swatches module version:
    • 2.0.0 in module.xml
    • 100.0.2 in composer.json
  • full sample data installed (this is not mandatory)

Steps to reproduce

  • visit a configurable product page with a hash to autoselect the options: product.phtml#{attribute_id}={option_id}.
  • example in sample data: orion-two-tone-fitted-jacket.html#90=49. This should select the color black automatically

Expected result

  • the color swatch black should be selected

Actual result

  • nothing is selected

Additional information

  • Disabling the Magento_Swatches module makes the page behave as expected:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions