Table of Contents & Menu
On this page

No subsections

Navigation

Preselecting Configurable Product Options

You can preselect configurable product options using URL query or hash parameters.

  • Query Parameters: Pre-select options with `?attribute_code=option_id`.

    Example: `?size=176`

    Here, `size` is the attribute code, and `176` is the option ID.

  • Hash Parameters: Pre-select options with `#attribute_id=option_id`.

    Example: `#142=176`

    Here, `142` is the attribute ID, and `176` is the option ID.

To find the attribute code, attribute ID, and option ID, inspect the source code of the product page.