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

    Function positionApplies

    • Does the position apply to the goods sku? For the SKU the profile was fetched for the server's own applies wins; otherwise the rule from appliesTo (see the module notes). Without a SKU at all, only a position that applies to every goods line answers true (as the core does).

      Parameters

      Returns boolean

      positionApplies(position, { sku: variant.sku, baseSku: profile.sku, requestedSku: profile.requestedSku })