getLoyaltyProgramSettings()¶
The getLoyaltyProgramSettings method is used to get a LoyaltyProgramSettings object that represents settings for loyalty program in the storefront.
Returned value¶
The LoyaltyProgramSettings object.
Example¶
source
{% set loyaltyProgramSettings = ObjectApi.getLoyaltyProgramSettings() %}
{% if loyaltyProgramSettings.priceMode() == 1 %}
<h4>You can exchange product for points with a fee of {{ loyaltyProgramSettings.exchangePrice }} PLN.</h4>
{% elseif loyaltyProgramSettings.priceMode() == 2 %}
<h4>You can exchange product for points without paying an extra fee.</h4>
{% endif %}