Hello,
I want to display the price excluding tax and the price including tax on the product detail sheet.
I tried instertags but nothing worked.
Ex : {{product::tax_free_price}}
Hello,
I want to display the price excluding tax and the price including tax on the product detail sheet.
I tried instertags but nothing worked.
Ex : {{product::tax_free_price}}
Hi, you can get this values in "iso_reader" template.
Code:$Netto = \Isotope\Isotope::formatPrice($this->product->getPrice()->getNetAmount()); $Brutto = \Isotope\Isotope::formatPrice($this->product->getPrice()->getGrossAmount()); $Tax = $Brutto - $Netto;
Hello,
Thank you for your reply. Yes I am in the iso_reader model.
But it doesn't work, both prices are excluding VAT. Maybe more a configuration problem in my catalog.
My product has a default fee. My price attribute also has the tax in my configuration.
I don't understand.
I want to get:
150€ excluding tax
180€ tax incl.
PHP-Code:
<?php
$Netto = \Isotope\Isotope::formatPrice($this->product->getPrice()->getNetAmount());
$Brutto = \Isotope\Isotope::formatPrice($this->product->getPrice()->getGrossAmount());
$Tax = $Brutto - $Netto;
?>
<meta itemprop="priceCurrency" content="<?= \Isotope\Isotope::getConfig()->currency ?>">
<div class="price-ht" itemprop="price" content="<?= \Isotope\Isotope::roundPrice($price->getAmount(1, $this->product->getOptions())) ?>"><?= $Brutto ?> <sup>HT</sup></div>
<div class="price-ttc"><?= $Netto ?><sup class="currency">€ TTC</sup></div>
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
Lesezeichen