Ergebnis 1 bis 3 von 3

Thema: Display price excluding tax and the price including tax

  1. #1
    Contao-Nutzer
    Registriert seit
    06.12.2017.
    Beiträge
    24

    Standard Display price excluding tax and the price including tax

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

  2. #2
    Contao-Fan Avatar von Ainschy
    Registriert seit
    24.06.2009.
    Ort
    Wenden
    Beiträge
    796
    Partner-ID
    5666
    User beschenken
    Wunschliste
    Contao-Projekt unterstützen

    Support Contao

    Standard

    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;

  3. #3
    Contao-Nutzer
    Registriert seit
    06.12.2017.
    Beiträge
    24

    Standard

    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

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •