@avvyr/storefront-sdk - v0.19.0
    Preparing search index...

    Function profileForVariant

    • The profile as if it had been fetched for variant: only the positions that apply to it, the matrix position's classes from the variant's classPrices (when it has any), requestedSku the variant and every position's applies true. Pure; the profile is not changed.

      A variant without classPrices keeps the profile's classes: the base product's, or those of the variant the profile was fetched for when that one has its own (the server then falls back to the base product's rows). Fetch the profile for the base SKU when variants mix own and shared rows.

      Parameters

      Returns OptionProfileView