@nosto/preact

    Function priceDecorator

    • Exposes currency formatting logic as a SearchProduct decorator Sets priceText and listPriceText fields on product and SKU level Requires price, listPrice and priceCurrencyCode fields to be present

      Parameters

      • Optionalconfig: Partial<CurrencyConfig>

      Returns (hit: SearchProduct) => Result

    MMNEPVFCICPMFPCPTTAAATR