Skip to content

DiscountForThePoints

The DiscountForThePoints object represents discount settings in loyalty program in the storefront.

classDiagram
  direction LR
  class DiscountForThePoints{
    DiscountThresholdsList thresholds
  }

Properties

Attribute name Type Description
thresholds DiscountThresholdsList List of discount thresholds. Represented by DiscountThresholdsList

Examples

thresholds property

{% set discountThresholds = loyaltyProgramSettings.discountForThePoints.thresholds %}
{% for discountThreshold in discountThresholds %}
    For You will receive {{ discountThreshold.percentage }} % discount for {{ discountThreshold.points }} points.
{% endfor %}
 You will receive 10% discount for 100 points.
 You will receive 20% discount for 200 points.