Zum Inhalt springen

Problem mit Preis (2)

Erstellt am 24. April 2007 · 1 Antwort · letzte Antwort am 24. April 2007

Tags: Frage

HotDog ·

Hallo!

Ich benutze tt_products und habe folgendes Problem:
Mittels Typoscript

[usergroup = 5]
plugin.tt_products.priceNoReseller = 2
[global]

ordne ich einer Usergruppe einen eigenen Preis zu. Allerdings soll dieser Preis jeweils 0 Euro sein. Preis (2) kommt aber nur zum tragen, wenn er größer als 0 ist.
Gibt es eine Möglichkeit, dass bei dieser Gruppe auch die Null-Werte ausgegeben werden?
Bin dankbar für jede Hilfe!

HotDog ·

Ich habe nun in der Datei lib/class.tx_ttproducts_price.php den Code

if ($priceNo > 0) {
			$returnPrice = $this->getPrice($row['price'.$priceNo],$tax,$row['tax'],$this->conf['TAXincluded']);
		}
		// normal price; if reseller price is zero then also the normal price applies
		if ($returnPrice == 0) {
			$returnPrice = $this->getPrice($row['price'],$tax,$row['tax'],$this->conf['TAXincluded']);
		}
		return $returnPrice;
	} // getResellerPrice

geändert, so dass auch Null-Werte angezeigt werden.
Schöner fände ich allerdings, wenn ich das per Typoscript regeln könnte. Weiß jemand, was ich dann eingeben muss?