Frage zur xtcPrice.php
Verfasst: Mi 8. Mai 2013, 09:44
Ich habe gerade gesehen, dass die xtcPrice.php in webs weitgehend die Änderungen von gunnart beinhalten. http://www.gunnart.de/tipps-und-tricks/ ... ls-betrag/
Gemäss folgender Zeile sollte also mit YOU_SAVE.round(($pPrice-$sPrice) / $pPrice * 100).' % /'.$this->xtcFormat($pPrice-$sPrice, $format); die eigentliche Ersparnis in % angezeigt werden. Das ist in meinem Shop aber nicht der Fall. Wie kann ich die Ausgabe der prozentualen Ersparnis ausgeben?
Gemäss folgender Zeile sollte also mit YOU_SAVE.round(($pPrice-$sPrice) / $pPrice * 100).' % /'.$this->xtcFormat($pPrice-$sPrice, $format); die eigentliche Ersparnis in % angezeigt werden. Das ist in meinem Shop aber nicht der Fall. Wie kann ich die Ausgabe der prozentualen Ersparnis ausgeben?
Code: Alles auswählen
$price = '<span class="productOldPrice"><small>'.INSTEAD.'</small><del>'.$this->xtcFormat($pPrice, $format).'</del></span><br />'.ONLY.$this->checkAttributes($pID).$this->xtcFormat($sPrice, $format).'<br /><small>'.YOU_SAVE.round(($pPrice-$sPrice) / $pPrice * 100).' % /'.$this->xtcFormat($pPrice-$sPrice, $format);