Zum Inhalt springen

Feld MwSt

Erstellt am 14. November 2005 · 6 Antworten · letzte Antwort am 16. August 2006

Tags: Frage

dirkp ·

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

Flink ·

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.

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

in tt_products/lib/class.tx_ttproducts_basket.php:

getBasket

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

oder vielleicht auch

$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.

dirkp ·

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'];
...

der Adlige ·

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 😉

dirkp ·

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'] );

malisch01 ·
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