am: 18. Dezember 2013, 13:35:15
Hallo zusammen,
wühle mich seit 2 Stunden durch die Forensuche, werde aber nicht fündig.
Habe in der /includes/classes/xtcPrice.php die Ausgabe für den UVP/Ihr Preis geändert und etwas formatiert. Das hat soweit gut funktioniert.
Wenn ich eingeloggt bin, wird mir auch alles richtig angezeigt:
Siehe hier:
http://images.devs-on.net/Image/QOYxHDTF9iKL420Y-Bereich.pngBin ich allerdings nicht eingeloggt - also Gast, dann stellt sich die Situation wie folgt dar:
http://images.devs-on.net/Image/5JXZrnAi3qahtWvP-Bereich.pngBei Ihr Preis bzw. hier "Unser Preis" wird 0,00 EUR angezeigt.
Im Backend ist der Staffelpreis für Gast auch richtig hinterlegt.
Der entsprechende Teil aus der xtcPrice.php:
if ($format) {
$sQuery = xtDBquery("SELECT max(quantity) AS qty
FROM " . TABLE_PERSONAL_OFFERS_BY . $this->actualGroup . "
WHERE products_id='" . $pID . "'");
$sQuery = xtc_db_fetch_array($sQuery, true);
if (($this->cStatus['customers_status_graduated_prices'] == '1') && ($sQuery['qty'] > 1)) {
$bestPrice = $this->xtcGetGraduatedPrice($pID, $sQuery['qty']);
if ($discount) {
$bestPrice -= $bestPrice / 100 * $discount;
}
$price = '<small>UVP </small> <span class="oldprice">'.$pPrice.',00 EUR</span> ';
$price .= '<br /><small>'.FROM.'</small> <span class="newprice">ab '. $this->xtcFormat($bestPrice, $format, $tax_class) . '</span><br /><span class="unitprice"><small>' . UNIT_PRICE . $this->xtcFormat($sPrice, $format) . '</small></span>';
} else if ($sPrice != $pPrice) {
/* $price = '<span class="productOldPrice">' . MSRP . ' ' . $this->xtcFormat($pPrice, $format) . '</span><br />' . YOUR_PRICE . $this->checkAttributes($pID) . $this->xtcFormat($sPrice, $format); */
$price = '<small>UVP </small> <span class="oldprice">'.$pPrice.',00 EUR</span> ';
$price .= '<br /><small>'.FROM.'</small> <span class="newprice">ab '. $this->xtcFormat($bestPrice, $format, $tax_class) . '</span><br /><span class="unitprice"><small>' . UNIT_PRICE . $this->xtcFormat($sPrice, $format) . '</small></span>';
} else {
$price = $this->xtcFormat($sPrice, $format);
}
Hat hierzu jemand eine Idee?
Vielen Dank schonmal.
Linkback: https://www.modified-shop.org/forum/index.php?topic=28682.0