---
title: "Feld MwSt"
url: "https://www.typo3.net/d/33249-feld-mwst"
source: "typo3.net"
tags: ["Extensions","Frage"]
created: "2005-11-14"
last_reply: "2006-08-16"
replies: 6
solved: false
page: 1
pages: 1
lang: "de"
---

# Feld MwSt

Extensions · 6 Antworten · gestartet 2005-11-14

## Eröffnungsbeitrag

**dirkp** · 2005-11-14 · [Beitrag #1](https://www.typo3.net/d/33249-feld-mwst/1)

Hallo.

gibt es ein Feld (###...###) welches die MwSt  enthält. (wird benötigt für Kunden).
Als nicht der Preis ohne MwSt (###PRICE_NO_TAX###), sondern die MwSt in EUR (z.B. ###PRICE_TAX_ONLY###)

dirkp

## Antworten

### [#2](https://www.typo3.net/d/33249-feld-mwst/2) · Flink · 2005-11-16

Zur Anzeige der Mehrwertsteuer auf die Preise (single und total) muß in
tt_products/lib/class.tx_ttproducts_view_div.php
in der Funktion getItemMarkerArray eine Anpassung gemacht werden.

```php
$markerArray['###TAX###'] = $pibase->price->printPrice($pibase->price->priceFormat($item['priceTax']-$item['priceNoTax']));
```

in tt_products/lib/class.tx_ttproducts_basket.php:

```php
getBasket

$markerArray['###GOODSTOTAL_TAX###'] = $this->calculatedArray['priceTax']['goodstotal'] - $this->calculatedArray['priceNoTax']['goodstotal'];
```

oder vielleicht auch

```php
$markerArray['###TOTAL_TAX###'] = $this->calculatedArray['priceTax']['total'] - $this->calculatedArray['priceNoTax']['total'];
```

Vielleicht kann das ja jemand ausprobieren und hier eine Rückmeldung geben mit Angabe der Zeilennummer.

### [#3](https://www.typo3.net/d/33249-feld-mwst/3) · dirkp · 2005-11-16

Marker: ###TAX### (MwSt für einzelnen Artikel)
funktioniert in der Liste und Singleansicht sowie im Warenkorb

Marker: ###GOODSTOTAL_TAX###
Fehler: kommt Gesamtsumme heraus aber am falschen Platz (und 12 Stellen nach dem Komma)
Bsp: Warenkorb
Preis: 3,99
Anzahl: 50 Stück
Summe: 199,50
MwSt: 27,50 --> (49,59 Euro Gesamt MwSt - in jeder Zeile)

Marker: ###TOTAL_TAX###
funktioniert nicht !!!

-----------------------------------------------------------------------
class.tx_ttproducts_basket.php
...
$markerArray['###PRICE_TOTAL_TAX###']= $this->price->priceFormat($actItem['totalTax']);
$markerArray['###PRICE_TOTAL_NO_TAX###']= $this->price->priceFormat($actItem['totalNoTax']);

**// Feld Summe der MwSt für alle Produkte**
$markerArray['###GOODSTOTAL_TAX###'] = $this->calculatedArray['priceTax']['goodstotal']-$this->calculatedArray['priceNoTax']['goodstotal'];
**// Feld Summe der MwSt für Produkte, Versand und Zahlung**
$markerArray['###TOTAL_TAX###'] = $this->calculatedArray['priceTax']['total']-$this->calculatedArray['priceNoTax']['total'];
...

### [#4](https://www.typo3.net/d/33249-feld-mwst/4) · der Adlige · 2005-11-16

Hi,

tt_products Ver.: 2.3.7
...tt_products_basket.php

Zeile 1262:
		$markerArray['###PRICE_TOTAL_ONLY_TAX###'] = $this->price->priceFormat($this->calculatedArray['priceTax']['total']-$this->calculatedArray['priceNoTax']['total']);

Bei mir heisst der Marker "PRICE_TOTAL_ONLY_TAX" - dafür funtzt es aber auch ;)

Gruß
der Adlige ;)

### [#5](https://www.typo3.net/d/33249-feld-mwst/5) · dirkp · 2005-11-17

Danke für deine schnelle Antwort.

Einträge müssen hinzugefügt werden (class.tx_ttproducts_basket.php)!!!

1: Zeile 1038 (Summe der Mwst für 1 zukaufenden Artikel)
1036: $markerArray['###PRICE_TOTAL_TAX###']= $this->price->priceFormat($actItem['totalTax']);
1037: $markerArray['###PRICE_TOTAL_NO_TAX###']= $this->price->priceFormat($actItem['totalNoTax']);
**1038: $markerArray['###PRICE_TOTAL_ONLY_TAX###']=
$this->price->priceFormat($actItem['totalTax']-$actItem['totalNoTax']);**

2. Zeile 1133 (Gesamtsumme der MwSt für alle zukaufenden Artikel)
1030: // This is the total for the goods in the basket.
1031: $markerArray['###PRICE_GOODSTOTAL_TAX###']      = $this->price->priceFormat($this->calculatedArray['priceTax']['goodstotal']);
1032: $markerArray['###PRICE_GOODSTOTAL_NO_TAX###']   = $this->price->priceFormat($this->calculatedArray['priceNoTax']['goodstotal']);
**1033: $markerArray['###PRICE_GOODSTOTAL_ONLY_TAX###'] = $this->price->priceFormat($this->calculatedArray['priceTax']['goodstotal']-$this->calculatedArray['priceNoTax']['goodstotal']);**[/b]

3: Zeile 1264 (Summe der MwSt für alle zukaufenden Artikel, Versand, Zahlung)
1262: $markerArray['###PRICE_TOTAL_TAX###'] = $this->price->priceFormat($this->calculatedArray['priceTax']['total']);
1263: $markerArray['###PRICE_TOTAL_NO_TAX###'] = $this->price->priceFormat($this->calculatedArray['priceNoTax']['total']);
**1264: $markerArray['###PRICE_TOTAL_ONLY_TAX###'] = $this->price->priceFormat($this->calculatedArray['priceTax']['total']-$this->calculatedArray['priceNoTax']['total']);**

4. Zeile 1151 (MwSt für Versand)
1149: $markerArray['###PRICE_SHIPPING_TAX###'] = $this->price->priceFormat($this->calculatedArray['priceTax']['shipping']);
1150: $markerArray['###PRICE_SHIPPING_NO_TAX###'] = $this->price->priceFormat($this->calculatedArray['priceNoTax']['shipping']);
**1151: $markerArray['###PRICE_SHIPPING_ONLY_TAX###'] = $this->price->priceFormat($this->calculatedArray['priceTax']['shipping']-$this->calculatedArray['priceNoTax']['shipping']);**

5. Zeile 1165 (MwSt für Zahlung)
1163: $markerArray['###PRICE_PAYMENT_TAX###'] = $this->price->priceFormat($this->calculatedArray['priceTax']['payment']);
1164: $markerArray['###PRICE_PAYMENT_NO_TAX###'] = $this->price->priceFormat($this->calculatedArray['priceNoTax']['payment']);
**1165: $markerArray['###PRICE_PAYMENT_ONLY_TAX###'] = $this->price->priceFormat($this->calculatedArray['priceTax']['payment']-$this->calculatedArray['priceNoTax']['payment'] );**

### [#6](https://www.typo3.net/d/33249-feld-mwst/6) · Flink · 2005-11-18

Das ist jetzt in Version 2.3.8 aufgenommen worden.
Danke.

### [#7](https://www.typo3.net/d/33249-feld-mwst/7) · malisch01 · 2006-08-16

> **dirkp schrieb:**
>
> gibt es ein Feld (###...###) welches die MwSt  enthält. (wird benötigt für Kunden).
> Als nicht der Preis ohne MwSt (###PRICE_NO_TAX###), sondern die MwSt in EUR (z.B. ###PRICE_TAX_ONLY###)

Hallo,

stehe genau vor dem selben Problem.Muss es bei TYPO3 2.5 wie oben beschrieben gemacht werden oder gibt es eine einfachere Methode.

danke im voraus

---

Quelle: „Feld MwSt“, typo3.net, https://www.typo3.net/d/33249-feld-mwst
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
