• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 14.01.21, 13:01
  • Opened by: Martin Gallo
  • Closed by: Anonymous Submitter
  • Closed on:
  • Reason: Not a bug

Ticket #20466 - display both prices inc vat, exl vat

Hi
How can I display prices with and without VAT in product miniature and also in the cart? I try add

<span class="exl_tax" itemprop="price" content="{$product.price_amount}">{$product.price_tax_exc}</span>

to product.tpl which display price but i cant add any text after price. is this corect way?

Comments

Fred 14 Jan 2021, 14:51

try to add following code into a file you edit

{$product|print_r}

Then you will find a variable what you need to display different prices

Martin Gallo 14 Jan 2021, 16:19

This is exactly what i need. Thanks. But how to write it?

 <span class="exl_tax" itemprop="price" content="{$product.price_amount}">[%price% tax excl.]</span> 

this doesnt work

Fred 15 Jan 2021, 13:14

it looks like this

{$product.price_tax_excl}

only the variable name “price_tax_excl” you have to change to whatever you need