product - Prestashop Display both prices with and without tax -


i found how display both price , without tax on product list. when there specific price, old price same , without tax. displays old price tax incl price tax exc. example : 549,0 € ht (733.20€) - 659.88 € ttc (733.20€)

    {if (!$ps_catalog_mode , ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))}                 <div class="content_price">                 <p style="font-size: 20px;"> {l s='from'}</p>                     {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)}         {hook h="displayproductpriceblock" product=$product type='before_price'}                             <div id="prix_ht">                             <span class="price product-price">                             {if !$pricedisplay}{convertprice price=$product.price_tax_exc}{/if} {l s='ht.'}                         </span>                          {if $product.price_without_reduction > 0 && isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0}                             {hook h="displayproductpriceblock" product=$product type="old_price"}                             <span class="old-price product-price">                                  {displaywtprice p= $product.price_without_reduction}                             </span>                             {hook h="displayproductpriceblock" id_product=$product.id_product type="old_price"}                             {if $product.specific_prices.reduction_type == 'percentage'}                                 <span class="price-percent-reduction">-{$product.specific_prices.reduction * 100}%</span>                             {/if}                         {/if} </div>                         <div id="prix_ttc">                         <span class="price product-price">                             {if !$pricedisplay}{convertprice price=$product.price}{else}{convertprice price=$product.price_tax_exc}{/if}{l s='ttc'}                         </span>                          {if $product.price_without_reduction > 0 && isset($product.specific_prices) && $product.specific_prices && isset($product.specific_prices.reduction) && $product.specific_prices.reduction > 0}                             {hook h="displayproductpriceblock" product=$product type="old_price"}                             <span class="old-price product-price">                                 {displaywtprice p=$product.price_without_reduction}                             </span>                             {hook h="displayproductpriceblock" id_product=$product.id_product type="old_price"}                             {if $product.specific_prices.reduction_type == 'percentage'}                                 <span class="price-percent-reduction">-{$product.specific_prices.reduction * 100}%</span>                             {/if}                         {/if}                         {hook h="displayproductpriceblock" product=$product type="price"}                         {hook h="displayproductpriceblock" product=$product type="unit_price"}           {hook h="displayproductpriceblock" product=$product type='after_price'}           </div>                     {/if}                 </div> 

i think {displaywtprice p=product.price_without_reduction} not old price without tax. don't find how do. me please ? tue ps version 1.6.14.

you have 2 variable in smarty in product-list.tpl, , can use in new variable , split tax value

{assign var='totaltax' value=$total_products_wt - $total_products}  {displaywtpricewithcurrency price=$totaltax currency=$currency}</span> 

Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -