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: xtc_php_mail.inc.php Fehler am Ende der Bestellung

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Re: xtc_php_mail.inc.php Fehler am Ende der Bestellung
    Antwort #15 am: 22. Mai 2011, 12:36:34
    Das ist nur die Sprachdatei!

    Er meint aber die "/includes/modules/order_total/ot_total.php".

    Grüße

    Torsten

    ASNCM

    • Frisch an Board
    • Beiträge: 81
    • Geschlecht:
    Re: xtc_php_mail.inc.php Fehler am Ende der Bestellung
    Antwort #16 am: 22. Mai 2011, 13:14:18
    Achso....

    Aber die habe ich auch schon verglichen mit dem noch Laufenden Shop.
    Die ist gleich!

    Hier der Code:

    Code: PHP  [Auswählen]
    <?php
    /* -----------------------------------------------------------------------------------------
       $Id: ot_total.php 1002 2005-07-10 16:11:37Z mz $  

       XT-Commerce - community made shopping

       Copyright (c) 2003 XT-Commerce
       -----------------------------------------------------------------------------------------
       based on:
       (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
       (c) 2002-2003 osCommerce(ot_total.php,v 1.7 2003/02/13); www.oscommerce.com
       (c) 2003      nextcommerce (ot_total.php,v 1.11 2003/08/24); www.nextcommerce.org

       Released under the GNU General Public License
       ---------------------------------------------------------------------------------------*/


      class ot_total {
        var $title, $output;

        function ot_total() {
          $this->code = 'ot_total';
          $this->title = MODULE_ORDER_TOTAL_TOTAL_TITLE;
          $this->description = MODULE_ORDER_TOTAL_TOTAL_DESCRIPTION;
          $this->enabled = ((MODULE_ORDER_TOTAL_TOTAL_STATUS == 'true') ? true : false);
          $this->sort_order = MODULE_ORDER_TOTAL_TOTAL_SORT_ORDER;

          $this->output = array();
        }

        function process() {
          global $order, $xtPrice;
          if ($_SESSION['customers_status']['customers_status_show_price_tax'] != 0) {

            $this->output[] = array('title' => $this->title . ':',
                                    'text' => '<strong>' . $xtPrice->xtcFormat($order->info['total'],true) . '</strong>',
                                    'value' => $xtPrice->xtcFormat($order->info['total'],false));
          }

          if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 1) {
            $this->output[] = array('title' => MODULE_ORDER_TOTAL_TOTAL_TITLE_NO_TAX_BRUTTO . ':',
                                    'text' => '<strong>' . $xtPrice->xtcFormat($order->info['tax']+$order->info['total'],true) . '</strong>',
                                    'value' => $xtPrice->xtcFormat($order->info['total']+$order->info['tax'],false));
          }
          if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 0) {
            $this->output[] = array('title' => MODULE_ORDER_TOTAL_TOTAL_TITLE_NO_TAX . ':',
                                    'text' => '<strong>' . $xtPrice->xtcFormat($order->info['total'],true) . '</strong>',
                                    'value' => $xtPrice->xtcFormat($order->info['total'], false));
          }
        }

        function check() {
          if (!isset($this->_check)) {
            $check_query = xtc_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_ORDER_TOTAL_TOTAL_STATUS'");
            $this->_check = xtc_db_num_rows($check_query);
          }

          return $this->_check;
        }

        function keys() {
          return array('MODULE_ORDER_TOTAL_TOTAL_STATUS', 'MODULE_ORDER_TOTAL_TOTAL_SORT_ORDER');
        }

        function install() {
          xtc_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_key, configuration_value,configuration_group_id, sort_order, set_function, date_added) values ('MODULE_ORDER_TOTAL_TOTAL_STATUS', 'true', '6', '1','xtc_cfg_select_option(array(\'true\', \'false\'), ', now())");
          xtc_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_key, configuration_value,configuration_group_id, sort_order, date_added) values ('MODULE_ORDER_TOTAL_TOTAL_SORT_ORDER', '6','6', '2', now())");
        }

        function remove() {
          xtc_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')");
        }
      }
    ?>
     
    Alles Komisch...

    web28

    • modified Team
    • Beiträge: 9.404
    Re: xtc_php_mail.inc.php Fehler am Ende der Bestellung
    Antwort #17 am: 22. Mai 2011, 14:08:36
    Der Fehler ist das "ot_to tal.php" nicht gefunden wird, weil es diese Datei nicht gibt.
    Die richtige Bezeichnung ist "ot_total.php"

    Die falsche Bezeichnung kommt aus der Datenbank, hier ist ich der Tabelle "configuration" bei "MODULE_ORDER_TOTAL_INSTALLED" ein Fehler.

    Versuche mal im Admin unter "Module" -> "Zusammenfassung" -> "Summe (ot_total)" zu deinstallieren und wieder zu installieren.

    Wenn das nicht geht/hilft, musst Du das direkt in der Datenbank korrigieren.

    Gruss Web28

    Modulfux

    • Experte
    • Beiträge: 3.590
    • Geschlecht:
    Re: xtc_php_mail.inc.php Fehler am Ende der Bestellung
    Antwort #18 am: 22. Mai 2011, 14:11:19
    Der Fehler ist das "ot_to tal.php" nicht gefunden wird, weil es diese Datei nicht gibt.
    Die richtige Bezeichnung ist "ot_total.php"
    [...]

    Was anderes habe ich auch nicht sagen wollen, denn das ist mir sofort aufgefallen, dass in der Dateibezeichnung ein Leerzeichen enthalten war.

    Gruß
    Ronny

    web28

    • modified Team
    • Beiträge: 9.404
    Re: xtc_php_mail.inc.php Fehler am Ende der Bestellung
    Antwort #19 am: 22. Mai 2011, 14:24:23
    Hallo Ronny,

    das Leerzeichen hat aber mit der Datei nichts zu tun, an der fraglichen Codestelle werden alle installierten Module dynamisch eingelesen. Die Modul-Dateinamen kommen dabei aus der Datenbank. Ist hier ein Fehler, gibt es Verdruss.

    Gruss Web28

    ASNCM

    • Frisch an Board
    • Beiträge: 81
    • Geschlecht:
    Re: xtc_php_mail.inc.php Fehler am Ende der Bestellung
    Antwort #20 am: 22. Mai 2011, 15:06:55
    Danke Web28! :worship:

    [...]
    Versuche mal im Admin unter "Module" -> "Zusammenfassung" -> "Summe (ot_total)" zu deinstallieren und wieder zu installieren.
    [...]

    DAS WAR DIE LÖSUNG !
    SUPER VIELEN DANK!  :thumbs:

    Modulshop - Eine große Auswahl an neuen und hilfreichen Modulen für die modified eCommerce Shopsoftware
    1 Antworten
    3042 Aufrufe
    23. Januar 2012, 14:37:44 von taxidd3
    30 Antworten
    13572 Aufrufe
    08. August 2010, 21:14:48 von guensi
               
    anything