com.squarespace.template.plugins.platform.subscription-price.html Maven / Gradle / Ivy
{.var @originalPriceText localizedStrings.originalPriceText}
{.var @salePriceText localizedStrings.salePriceText}
{##
CommerceFormatter will provide from-price, sale-price and normal-price.
The below will render from-price first if it exists (> 1 variants),
sale-price next if from price doesn't exists,
normal-price if both from-price and sale-price doesn't exists.
##}
{.if formattedFromPrice}{fromText|message fromPrice:formattedFromPrice}
{.or}{.if formattedSubscriptionSalePrice}{.if @salePriceText}{@salePriceText|htmltag}{.or}Sale Price:{.end}{formattedSubscriptionSalePriceText|message price:formattedSubscriptionSalePrice}{.space}{.if @originalPriceText}{@originalPriceText|htmltag}{.or}Original Price:{.end}{formattedNormalSubscriptionPriceText|message price:formattedNormalSubscriptionPrice}
{.or}{.if formattedNormalSubscriptionPrice}{formattedNormalSubscriptionPriceText|message price:formattedNormalSubscriptionPrice}{.end}{.end}{.end}