New discount display variables for widget customization
We’ve added support for two new discount variables to give merchants more flexibility in how discounts are presented inside the widget.
{discountAmountCurrency}
Displays the discount as a monetary value (e.g., $10, €15).
{discountAmountFromPlan}
Dynamically displays the discount based on how it is configured in the plan:
- If the plan uses a percentage discount, it will show a percentage (e.g., 20%).
- If the plan uses a fixed amount discount, it will show a monetary value (e.g., $10).
{discountAmount}
Continues to always display the discount as a percentage, regardless of the plan configuration.
