Skip to content

Preselecting configurable product options

The options of configurable products can be preselected with URL query or hash parameters.

For example:

  • Pre-select options with query-arguments ?size=167.
    The key is the attribute code, and the value is the option ID.
    Usually the easiest way to determine the option ID for an option is to inspect the source of the page.

  • Pre-select option hash-arguments #144=167.
    The key is the attribute ID, and the value is the option ID. Usually the easiest way to determine the attribute ID and the option ID is to inspect the source of the page.