Fitment data

Metafields & specs

Per-product specs for facets and spec matching.

Metafields do two jobs in WySync. They power filters on the collection page for every category, and — for wheels and tires with the Fitment Data add-on — they are what spec matching judges.

Mapping your metafields#

Every store spells its metafields differently, so the app asks you once. Under Search & filters → Filters, each mapping declares:

Namespace and key
e.g. custom.wheel_diameter
Display name
what the shopper sees
Type
decimal, integer, single-value text, multi-value text, or boolean
Role
filter only, or filter plus spec matching

Types matter because they decide the index field and the filter control:

TypeIndex prefixFilter controlExample
Decimalspec_num_Range sliderspec_num_wheel_diameter
Integerspec_int_Range sliderspec_int_offset
Text, single valuespec_str_Dropdown or radiospec_str_finish
Text, multi valuespec_strs_Checkboxesspec_strs_bolt_pattern
Booleanspec_bool_Togglespec_bool_run_flat

Examples across categories#

Types matter more than names. A few real mappings:

CategoryMetafieldTypeBecomes
Suspensioncustom.lift_heightDecimalspec_num_lift_height, range slider
Brakescustom.rotor_diameterDecimalspec_num_rotor_diameter, range
Brakescustom.pad_compoundText, singlespec_str_pad_compound, dropdown
Lightingcustom.beam_patternText, multispec_strs_beam_pattern, checkboxes
Towingcustom.hitch_classText, singlespec_str_hitch_class, dropdown
Wiperscustom.blade_lengthIntegerspec_int_blade_length, range
Exhaustcustom.cat_backBooleanspec_bool_cat_back, toggle

The well-known wheel and tire keys#

Wheels and tires get a shortcut because the add-on needs to read them. If your metafields use these custom.* keys, the indexer recognises them with no mapping at all:

text
custom.wheel_diameter     custom.wheel_width
custom.wheel_offset       custom.wheel_bolt_pattern
custom.wheel_hub_bore     custom.tire_size
custom.load_index         custom.speed_rating

Everything else — every category above — works fine; it just needs the mapping step. The full list lives in data formats.

Units and formatting#

For wheel and tire values specifically, the indexer canonicalises on the way in:

  • Bolt patterns5x114.3, 5×114.3mm, 5-114.3 and 5x4.5" all become one canonical value. Imperial equivalences are physics, so they ship in code rather than as your configuration.
  • Diameter and width — inches, decimal. 20, 20.0 and 20" are the same.
  • Offset — millimetres, signed integer. +18, 18 and 18mm are the same; -12 stays negative.
  • Hub bore — millimetres, decimal.

Values the indexer cannot parse are reported per product under Indexing rather than silently dropped, so a supplier's 20 X 9 shows up as a fixable error instead of a missing filter.

Filters hide themselves#

If no product in the current result set has a value for a mapped field, that filter disappears from the sidebar for that query. Browsing tires does not show a Bolt Pattern filter with zero options.

Metafields alone are not fitment

Specs describe the product. Fitment needs something that also describes the vehicle. For most categories, that means metafields give you excellent filters and your mappings give you verdicts. Wheels and tires are the exception: with the add-on, our vehicle data supplies the other half and the specs alone produce a verdict.

Still stuck?

Support is answered by the people who wrote this code — not a ticket queue.

Contact support