Jump to content

[SOLVED] Net gross prices, with VAT, without VAT, Prestashop 8.2


Peter_17

Recommended Posts

A simple way how to display net and gross prices on the product page and in the category:

Theme classic
Category page:
/themes/classic/templates/catalog/_partials/minatures/product.tpl
Product page:
/themes/classic/templates/catalog/_partials/product-prices.tpl

Replace:

{if '' !== $smarty.capture.custom_price}
   {$smarty.capture.custom_price nofilter}
{else}
   {$product.price}
{/if}

With:

{if '' !== $smarty.capture.custom_price}
  {$smarty.capture.custom_price nofilter}
{else}
   <p class="your-class">{Context::getContext()->getCurrentLocale()->formatPrice($product.price_tax_exc, $currency.iso_code)}<br />
   <span class="your-class-2"> {l s='tax excl.' d='Shop.Theme.Catalog'}</span></p>
   {$product.price}
{/if}

 

Edited by Peter_17 (see edit history)
Link to comment
Share on other sites

  • Peter_17 changed the title to [SOLVED] Net gross prices, with VAT, without VAT, Prestashop 8.2

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...