• Output a warning message to the user interface. Warning messages are used to notify users about potential issues or important considerations that may affect their pricing.

    Parameters

    • message: any

      The warning message to display to the user

    • Optional location: string

      Where to show the message, one of MessageArea; shown everywhere when omitted

    Returns void

    Example

    warning("Large file detected - processing may take longer");
    warning("Some attributes may affect shipping costs");

    Example

    warning("Order 50 or more for a 10% discount", Constants.MessageArea.ProductDetails);
    

Generated using TypeDoc