silverstripe-webpack/app/templates/SilverShop/Includes/Price.ss

13 lines
409 B
Scheme

<% if $PriceRange %>
<div class="price">
<strong class="value">$PriceRange.Min.Nice</strong>
<% if $PriceRange.HasRange %>
- <strong class="value">$PriceRange.Max.Nice</strong>
<% end_if %>
<span class="currency">$Price.Currency</span>
</div>
<% else_if $Price %>
<div class="price">
<strong class="value">$Price.Nice</strong> <span class="currency">$Price.Currency</span>
</div>
<% end_if %>