Jump to content

Problème pour afficher le prix unitaire

Recommended Posts



J'essaie d'afficher le prix unitaire (quand précisé dans la fiche produit) sous le prix HT. Sauf que voici l'extrait du code de mon product-price.tpl et je ne comprends pas pourquoi il ne s'affiche pas... 

Une idée?




{block name='product_price'}
        class="product-price h5 {if $product.has_discount}has-discount{/if}"
        <link itemprop="availability" href="{$product.seo_availability}"/>
        <meta itemprop="priceCurrency" content="{$currency.iso_code}">

        <div class="current-price">
          <span itemprop="price" content="{Tools::displayPrice($product.price_tax_exc)}">{Tools::displayPrice($product.price_tax_exc)}  <sup class="worwot">HT {if $TypeAcquisition==1}/mois{/if}</sup>
		  {if $displayUnitPrice}
            <p class="product-unit-price sub">{l s='(%unit_price%)' d='Shop.Theme.Catalog' sprintf=['%unit_price%' => $product.unit_price_full]}</p>
          {if $product.has_discount}
            {if $product.discount_type === 'percentage'}
              <span class="discount discount-percentage">{l s='Save %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</span>
              <span class="discount discount-amount">
                  {l s='Save %amount%' d='Shop.Theme.Catalog' sprintf=['%amount%' => $product.discount_to_display]}

        {block name='product_unit_price'}
          {if $displayUnitPrice}
            <p class="product-unit-price sub">{l s='(%unit_price%)' d='Shop.Theme.Catalog' sprintf=['%unit_price%' => $product.unit_price_full]}</p>


Capture d’écran 2019-10-01 à 11.56.52.png

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More