{if !$product}
   {$product = $body.product}
{/if}

<div class="product-price-block">
   {calc_product_discount product=$product assign='discount'}
   {if $discount.discount->asFloat() >= 1}
      <span class="flag flag-discount">
         -{$discount.discount->asFloat()|round} %
      </span>
   {/if}
   <div>
      {if $discount.priceOriginal}
         <p class="price-common" data-price-common>{$discount.priceOriginal|format_price}</p>
      {/if}
      <p class="price" data-price>{$product.productPrice|format_price}</p>
   </div>
</div>
