Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Ihr Preis als Gast: 0,00EUR

    reikem

    • Neu im Forum
    • Beiträge: 14
    Ihr Preis als Gast: 0,00EUR
    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.png

    Bin ich allerdings nicht eingeloggt - also Gast, dann stellt sich die Situation wie folgt dar:
    http://images.devs-on.net/Image/5JXZrnAi3qahtWvP-Bereich.png

    Bei 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:
    Code: PHP  [Auswählen]
        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

    reikem

    • Neu im Forum
    • Beiträge: 14
    Re: Ihr Preis als Gast: 0,00EUR
    Antwort #1 am: 18. Dezember 2013, 15:08:05
    PS: Habe gerade einen Artikel bearbeitet im Backend und nun wird mir hier auch im eingeloggten Zustand der Preis 0,00 als günstigster preis angezeigt.