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: Anleitung: Anzeige Preis "Ab" und "Einzelpreis" tauschen

    Q

    • Fördermitglied
    • Beiträge: 1.531
    Die Reihenfolge der Preisanzeige (Einzelpreis/Staffelpreis) soll getauscht werden, so dass als erstes der Einzelpreis steht und drunter der „Staffelpreis ab“.

    Zitat
    Einzelpreis: 1,00 EUR
    Staffelpreis ab: 0,80 EUR

    includes\classes\xtcPrice.php
    suche (ca. Zeile 609):

    Code: PHP  [Auswählen]
    if ($discount)
            $bestPrice -= $bestPrice / 100 * $discount;
            $price .= FROM.$this->xtcFormat($bestPrice, $format, $tax_class)
            .' <br /><small>' . UNIT_PRICE
            .$this->xtcFormat($sPrice, $format)
            .'</small>';

    ersetze mit:

    Code: PHP  [Auswählen]
           
    if ($discount)
            $bestPrice -= $bestPrice / 100 * $discount;
            $price .= UNIT_PRICE
            .$this->xtcFormat($sPrice, $format)
            .' <br /><small>' . FROM.$this->xtcFormat($bestPrice, $format, $tax_class)
            .'</small>';

    Anschließend noch in den Sprachdateien die Variablen UNIT_PRICE und FROM abändern!

    Linkback: https://www.modified-shop.org/forum/index.php?topic=20157.0

    jannemann

    • modified Team
    • Beiträge: 6.275
    • Geschlecht:
    Re: Anleitung: Anzeige Preis "Ab" und "Einzelpreis" tauschen
    Antwort #1 am: 22. Mai 2012, 23:17:09
    Hallo oneQ,

    herzlichen Dank fürs Teilen!  :thumbs:

    Schöne Grüße,
    Jan
    Shop Hosting