|
|||
|
guten morgen!
ich hab mich schon dumm und d?mlich getippt...ich hoffe, ihr k?nnt mir helfen. wie kriege ich es hin, sodass der sonderpreis in rot und der alte, durchgestrichene preis ins schwarz angezeigt wird? hier mein xtcPrice.php: Zitat:
|
|
||||
|
Code:
function xtcFormatSpecial($sPrice,$pPrice,$format,$vpeStatus=0) {
if ($format) {
$price = '<span class="productOldPrice">'.INSTEAD
.$this->xtcFormat($pPrice,$format).
'</span><br />'.ONLY.'<span class="productNewPrice">'
.$this->xtcFormat($sPrice,$format).'</span>';
if ($vpeStatus == 0) {
return $price;
} else {
return array('formated'=>$price,'plain'=>$sPrice);
}
} else {
return round($sPrice,$this->currencies[$this->actualCurr]['decimal_places']);
}
}
ungetestet, ohne gewehr.
__________________
dieser beitrag ist ohne gewähr und stellt nur meine meinung und keinesfalls eine rechtsberatung dar. im zweifelsfalle ist er ironisch gemeint. .:netzdesign33.de:. | .:blog33.de:. |
|
|||
|
vielen dank @polkhigh33
nach der ?nderung im .css hatte ich zwar den neuen preis in rot, jedoch das "NUR" war noch in schwarzer schrift. nach einer kleinen ?nderung, funzt jetzt jedoch alles super. vielen dank nochmal.. hier der code, falls es jemanden interessiert: Code:
function xtcFormatSpecial($sPrice,$pPrice,$format,$vpeStatus=0) {
if ($format) {
$price = '<span class="productOldPrice">'.INSTEAD
.$this->xtcFormat($pPrice,$format).
'</span><br /><span class="productNewPrice">'.ONLY.''
.$this->xtcFormat($sPrice,$format).'</span>';
if ($vpeStatus == 0) {
return $price;
} else {
return array('formated'=>$price,'plain'=>$sPrice);
}
} else {
return round($sPrice,$this->currencies[$this->actualCurr]['decimal_places']);
}
}
|
|
|||
|
Zitat:
Nur Packe ich es ergendwie net ? ? ? Jemand ne anleitung da :-) stg |
![]() |
| Lesezeichen |
| Stichworte |
| alter, farbe, preis, rote, sonderangebote, weg |
| Themen-Optionen | |
| Ansicht | |
|
|