<# if ( settings.sale && settings.original_price ) { #>
<# if ( ! _.isEmpty( symbol ) && ( 'before' == settings.currency_position || _.isEmpty( settings.currency_position ) ) ) { #>
{{{ symbol }}}{{{ settings.original_price }}}
<# } #>
<#
/* The duplicate usage of the original price setting in the "if blocks" is to avoid whitespace between the number and the symbol. */
if ( _.isEmpty( symbol ) ) {
#>
{{{ settings.original_price }}}
<# } #>
<# if ( ! _.isEmpty( symbol ) && 'after' == settings.currency_position ) { #>
{{{ settings.original_price }}}{{{ symbol }}}
<# } #>
<# } #>
<# if ( ! _.isEmpty( symbol ) && ( 'before' == settings.currency_position || _.isEmpty( settings.currency_position ) ) ) { #>
{{{ symbol }}}
<# } #>
<# if ( intpart ) { #>
{{{ intpart }}}
<# } #>
<# if ( fraction ) { #>
{{{ fraction }}}
<# } #>
<# if ( settings.period && 'beside' === settings.period_position ) { #>
{{{ periodElement }}}
<# } #>
<# if ( ! _.isEmpty( symbol ) && 'after' == settings.currency_position ) { #>
{{{ symbol }}}
<# } #>
<# if ( settings.period && 'below' === settings.period_position ) { #>
{{{ periodElement }}}
<# } #>
<# } #>
<# if ( settings.button_text || settings.footer_additional_info ) { #>
<# } #>