I found this workaround for version 1.6 here: How to display product price with and without tax at a time in product list for Prestashop?
but the code for product-list.tpl changed a lot in 1.7
Is there a workaround for 1.7?
Thanks in advance!
I found this workaround for version 1.6 here: How to display product price with and without tax at a time in product list for Prestashop?
but the code for product-list.tpl changed a lot in 1.7
Is there a workaround for 1.7?
Thanks in advance!
Since version 1.7.6, displayPrice method is deprecated. Use formatPrice instead. For example in templates/catalog/_partials/miniatures/_partials/product-prices.tpl:
{block name='product_without_taxes'}
{if $priceDisplay != 1}
<p class="product-without-taxes">{l s='%price% tax excl.' d='Shop.Theme.Catalog' sprintf=['%price%' => Context::getContext()->currentLocale->formatPrice($product.price_tax_exc, $currency.iso_code)]}</p>
{/if}
{/block}