{% set infoCycle = installmentPeriodText(productOffer.planCycle) %}
{% if product.type == enum('ProductEnum::SUBSCRIPTION') %}
<div class="period">
<span>{{ infoCycle.textPlan|title }}</span>
</div>
{% endif %}
{% if productOffer.notForSale == enum('ProductEnum::NO') and (infoOffer.allowBuyNow or infoOffer.saleChannelOption) and not infoOffer.userHasProduct %}
<div class="pricing">
{% if parcelInfo is defined and parcelInfo.maxInstallments > 1 %}
<p class="preco-atual">
<small>{{ parcelInfo.maxInstallments }}x {{ productOffer.currencySymbol }}</small>
{{ parcelInfo.parcelPrice|number_format(2, ',', '.') }}
</p>
{% else %}
<p class="final">
{{ infoOffer.isFree?
getLanguage('free', 'product'):
"#{productOffer.currencySymbol} #{productOffer.getPriceRealCopy()|number_format(2, ',', '.')}"
}}
</p>
{% endif %}
<p>
{% if productOffer.priceDisplay > productOffer.getPriceRealCopy() %}
<span class="display-price">
{{ getLanguage('was', 'product') }}
<span class="scratch">
{{ productOffer.currencySymbol }} {{ productOffer.priceDisplay|number_format(2, ',', '.') }}
</span>
</span>
{% elseif productOffer.priceReal > productOffer.getPriceRealCopy() %}
<span class="display-price">
{{ getLanguage('was', 'product') }}
<span class="scratch">
{{ productOffer.currencySymbol }} {{ productOffer.priceReal|number_format(2, ',', '.') }}
</span>
</span>
{% endif %}
{% if parcelInfo is defined and parcelInfo.maxInstallments > 1 %}
<span class="display-price">
{{ productOffer.currencySymbol }} {{ productOffer.getPriceRealCopy|number_format(2, ',', '.') }} {{ getLanguage('in_cash', 'product') }}
</span>
{% endif %}
{% if product.type == enum('ProductEnum::SUBSCRIPTION') or productOffer.allowRecurrency == enum('ProductOfferEnum::YES') %}
<span class="cycle">/{{ infoCycle.text }}</span>
{% endif %}
{% if (productOffer.planLifetime == 0 and productOffer.planChargeNumberMax > 1) %}
<span class="payments">{{ "#{productOffer.planChargeNumberMax} #{getLanguage('payments', 'product')}" }}</span>
{% endif %}
</p>
</div>
{% endif %}