Hallo,
Ich möchte die Preis Angaben (Alter Preis, Neuer Preis, Rabatt) über CSS formatieren.
Der Produkte Preis wird so wie ich das feststellen konnte in der /includes/classes/xtcPrice.php mit dieser function generiert.
-----------
function xtcFormatSpecialDiscount($pID, $discount, $pPrice, $format, $vpeStatus = 0) {
$sPrice = $pPrice - ($pPrice / 100) * $discount;
if ($format) {
$price = '<span class="productOldPrice">'.INSTEAD.$this->xtcFormat($pPrice, $format).'</span><br />'
.ONLY.$this->checkAttributes($pID).$this->xtcFormat($sPrice, $format).'<br />'
.YOU_SAVE.$discount.'%';
if ($vpeStatus == 0) {
return $price;
} else {
return array ('formated' => $price, 'plain' => $sPrice);
}
} else {
return round($sPrice, $this->currencies[$this->actualCurr]['decimal_places']);
}
}
-----------
Wenn man einen Rabatt angibt, kann man die Formatierung über das Stylesheet ändern da hierfür die Klasse "pructOldPrice" definiert ist.
Ich möchte aber nun für den neuen Preis (Zeile begint mit .ONLY) und für die Rabatt Anzeige (Zeile beginnt mit .YOU_SAVE...) auch einen eigene Style festlegen. Am liebsten würde ich sie in eigene DIVs setzen.
Ist das überhaupt möglich, und wo müsste ich den HTML code einfügen.
Habe schon alles mögliche versucht aber leider ohne Erfolg.

Gruss
Boni