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: MODUL: Sperrgut Modul 3 Plus für modified eCommerce Shopsoftware

    except

    • Fördermitglied
    • Beiträge: 69
    Re: MODUL: Sperrgut Modul 3 Plus für modified eCommerce Shopsoftware
    Antwort #150 am: 19. September 2013, 16:18:37
    Hilfe,
    Habe auf meinem Shop V.1.05 die Speergut module nach Anleitung verändert, die neuen Files hochgeladen und die install.sql ausgeführt und nun sehe ich zwar, das ot_sperrgut file, kann auch in den Versandoptionen Preise machen, aber wenn ich im Artikel den Sperrgutpreis auswähle und auf speichern drücke, kommt nur das hier:
    1054 - Unknown column 'products_speergut' in 'field list'

    Was habe ich denn da falsch gemacht? Muss ich die jetzt noch manuell irgendwo in der SQL einfügen?
    Danke für die Hilfe
    Gruss
    Ralph

    jonnyB

    • Fördermitglied
    • Beiträge: 519
    • Geschlecht:
    Re: MODUL: Sperrgut Modul 3 Plus für modified eCommerce Shopsoftware
    Antwort #151 am: 19. September 2013, 17:21:03
    Die Fehlermeldungsagt, daß das DB-Feld "products_speergut" nicht existiert.
    Prüfe nochmals die DB und spiele die SQL-Anweisung für dieses Feld nochmals ein.

    except

    • Fördermitglied
    • Beiträge: 69
    Re: MODUL: Sperrgut Modul 3 Plus für modified eCommerce Shopsoftware
    Antwort #152 am: 19. September 2013, 17:23:32
    danke für den Hinweis, aber ich bin absoluter Anfänger.
    Habe hier mal ein Bild angefügt - ich finde also die Sperrgut Einträge in der Datenbank, aber vielleicht sind die nicht richtig ausgefüllt??

    Weiss auch nicht, wie ich nur einen Teil der Install.sql importieren soll

    Könnte es auch sein, dass ich diese Datei irgendwo einfügen muss??  .DS_Store

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.724
    • Geschlecht:
    Re: MODUL: Sperrgut Modul 3 Plus für modified eCommerce Shopsoftware
    Antwort #153 am: 19. September 2013, 18:27:11
    Schau bitte mal in die Tabelle products mit phpMyAdmin.
    Dort müsste das Feld/die Spalte products_sperrgut existiert, wohl nicht nach der Fehlermeldung zu urteilen.

    Hast du den Befehl in der DB ausgeführt ?
    Mache es einfach mal.
    Code: SQL  [Auswählen]
    ALTER TABLE products ADD products_sperrgut TINYINT(1) UNSIGNED NOT NULL DEFAULT '0';

    Gruß,
    noRiddle

    *NACHTRAG*
    Was meinst du mit ".DS_Store", das ist eine MAC Systemdatei, kann gelöscht werden.

    except

    • Fördermitglied
    • Beiträge: 69
    Re: MODUL: Sperrgut Modul 3 Plus für modified eCommerce Shopsoftware
    Antwort #154 am: 20. September 2013, 08:24:25
    Hi noRiddle
    ich habe deinen SQL Befehl in der Datenbank ausgeführt und dann kam eine Fehlermeldung (siehe Bild 1). und auf Bild 2 sehe ich, dass ich sie also schon importiert hatte.

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.173
    • Geschlecht:
    Re: MODUL: Sperrgut Modul 3 Plus für modified eCommerce Shopsoftware
    Antwort #155 am: 20. September 2013, 08:27:34
    Hast du auch die richtige Datenbank vom Shop ausgewählt? :-?

    Grüße

    Torsten

    except

    • Fördermitglied
    • Beiträge: 69
    Re: MODUL: Sperrgut Modul 3 Plus für modified eCommerce Shopsoftware
    Antwort #156 am: 20. September 2013, 08:57:21
    Ciao Thorsten
    Denke schon, kann das install.sql aber auch noch in den anderen installieren, da wir zwar noch 2 DB's haben, aber alle xtc sind. ich probiers mal
    Code: SQL  [Auswählen]
    ALTER TABLE `products` ADD `products_sperrgut` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '0';# 71 Datensätze betroffen.


    INSERT INTO `configuration` ( `configuration_id` , `configuration_key` , `configuration_value` , `configuration_group_id` , `sort_order` , `last_modified` , `date_added` , `use_function` , `set_function` )
    VALUES (
    NULL , 'SHIPPING_SPERRGUT_1', '30', '7', '10', NULL , NOW( ) , NULL , NULL
    );# 1 Datensatz betroffen.

    Also, hab ich gemacht und der Fehler ist immer noch da, wenn ich im Artikel den Sperrgutaufschlag abspeichern will.

    Und seit ich diese Installation des Sperrgutsmodul gemacht habe, kann ich im Artikel selber auch nichts mehr ändern und abspeichern es kommt immer die gleiche Fehlermeldung '1054 - Unknown column 'products_speergut' in 'field list''

    Glaube ist besser, wenn ich alles zurücksetze, was meint ihr?

    except

    • Fördermitglied
    • Beiträge: 69
    Re: MODUL: Sperrgut Modul 3 Plus für modified eCommerce Shopsoftware
    Antwort #157 am: 20. September 2013, 09:45:15
    Hab jetzt wieder die 3 original files genommen, damit ich wieder Artikel bearbeiten kann:
    admin/includes/classes/categories.php
    admin/includes/modules/new_product.php
    includes/modules/product_info.php

    Die Sprachfiles stören ja nicht, wenn ich die umgeschrieben lasse.

    Würde trotzdem gerne wissen, wo der Wurm steckt.

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.724
    • Geschlecht:
    Re: MODUL: Sperrgut Modul 3 Plus für modified eCommerce Shopsoftware
    Antwort #158 am: 20. September 2013, 15:20:43
    Ich tippe mal:
    Du dürftest doch das hier aus der Anleitung
    Code: PHP  [Auswählen]
    define('ADD_PRODUCTS_FIELDS','products_manufacturers_model');
    in /admin/includes/classes/categories.php nicht gefunden haben,
    da du Shopversion 1.05 hast.

    Wie hast du die Array-Erweiterung denn implementiert ?

    In 1.05 muß das anstelle diesem
    In /admin/includes/classes/categories.php folgendes suchen
    define('ADD_PRODUCTS_FIELDS','products_manufacturers_model');

    und hiermit ersetzen
    Code: PHP  [Auswählen]
    define('ADD_PRODUCTS_FIELDS','products_manufacturers_model, products_sperrgut'); // added for sperrgut module, noRiddle

    so aussehen:
    In /admin/includes/classes/categories.php folgendes in der Funktion insert_product() suchen
    Code: PHP  [Auswählen]
    $sql_data_array = array ('products_quantity' => xtc_db_prepare_input($products_data['products_quantity']), 'products_model' => xtc_db_prepare_input($products_data['products_model']), 'products_ean' => xtc_db_prepare_input($products_data['products_ean']), 'products_price' => xtc_db_prepare_input($products_data['products_price']), 'products_sort' => xtc_db_prepare_input($products_data['products_sort']), 'products_shippingtime' => xtc_db_prepare_input($products_data['shipping_status']), 'products_discount_allowed' => xtc_db_prepare_input($products_data['products_discount_allowed']), 'products_date_available' => $products_date_available, 'products_weight' => xtc_db_prepare_input($products_data['products_weight']), 'products_status' => $products_status, 'products_startpage' => xtc_db_prepare_input($products_data['products_startpage']), 'products_startpage_sort' => xtc_db_prepare_input($products_data['products_startpage_sort']), 'products_tax_class_id' => xtc_db_prepare_input($products_data['products_tax_class_id']), 'product_template' => xtc_db_prepare_input($products_data['info_template']), 'options_template' => xtc_db_prepare_input($products_data['options_template']), 'manufacturers_id' => xtc_db_prepare_input($products_data['manufacturers_id']), 'products_fsk18' => xtc_db_prepare_input($products_data['fsk18']), 'products_vpe_value' => xtc_db_prepare_input($products_data['products_vpe_value']), 'products_vpe_status' => xtc_db_prepare_input($products_data['products_vpe_status']), 'products_vpe' => xtc_db_prepare_input($products_data['products_vpe']));

    und hiermit ersetzen
    Code: PHP  [Auswählen]
    $sql_data_array = array ('products_quantity' => xtc_db_prepare_input($products_data['products_quantity']), 'products_model' => xtc_db_prepare_input($products_data['products_model']), 'products_ean' => xtc_db_prepare_input($products_data['products_ean']), 'products_price' => xtc_db_prepare_input($products_data['products_price']), 'products_sort' => xtc_db_prepare_input($products_data['products_sort']), 'products_shippingtime' => xtc_db_prepare_input($products_data['shipping_status']), 'products_discount_allowed' => xtc_db_prepare_input($products_data['products_discount_allowed']), 'products_date_available' => $products_date_available, 'products_weight' => xtc_db_prepare_input($products_data['products_weight']), 'products_status' => $products_status, 'products_startpage' => xtc_db_prepare_input($products_data['products_startpage']), 'products_startpage_sort' => xtc_db_prepare_input($products_data['products_startpage_sort']), 'products_tax_class_id' => xtc_db_prepare_input($products_data['products_tax_class_id']), 'product_template' => xtc_db_prepare_input($products_data['info_template']), 'options_template' => xtc_db_prepare_input($products_data['options_template']), 'manufacturers_id' => xtc_db_prepare_input($products_data['manufacturers_id']), 'products_fsk18' => xtc_db_prepare_input($products_data['fsk18']), 'products_vpe_value' => xtc_db_prepare_input($products_data['products_vpe_value']), 'products_vpe_status' => xtc_db_prepare_input($products_data['products_vpe_status']), 'products_vpe' => xtc_db_prepare_input($products_data['products_vpe']), 'products_sperrgut' => xtc_db_prepare_input($products_data['products_sperrgut']));

    Weiß jetzt aus dem Stegreif nicht ob da noch andere Dinge sind die in 1.05 anders als in 1.06 rev4642 sind.
    Wenn du die Anleitung aufmerksam gelesen hast weißt du allerdings wie du's eingebaut bekommen kannst. ;-)

    Gruß,
    noRiddle

    *NACHTRAG*
    Nach diesem Sermon fällt mir gerade ein, daß ich ja gar nicht weiß ob du überhaupt meine Erweiterung benutzt hast oder die alte (Version 1.05)...  :doh:

    except

    • Fördermitglied
    • Beiträge: 69
    Re: MODUL: Sperrgut Modul 3 Plus für modified eCommerce Shopsoftware
    Antwort #159 am: 20. September 2013, 17:26:42
    Ciao noRiddle

    Danke für deine Hilfe, werde es am Wochenende nochmals ausprobieren.
    Und ja das hier :

    Code: PHP  [Auswählen]
    define('ADD_PRODUCTS_FIELDS','products_manufacturers_model');

    ist wirklich nicht da, das steht aber in der Anleitung die ich habe auch nicht, sondern nur dass:

    Zitat
    Datei: admin/includes/classes/categories.php
    ---------------------------------------------------------------------------------------------------
    finde folgendes:

    Code: PHP  [Auswählen]
                    $sql_data_array = array ('products_quantity' => xtc_db_prepare_input($products_data['products_quantity']), 'products_model' => xtc_db_prepare_input($products_data['products_model']), 'products_ean' => xtc_db_prepare_input($products_data['products_ean']), 'products_price' => xtc_db_prepare_input($products_data['products_price']), 'products_sort' => xtc_db_prepare_input($products_data['products_sort']), 'products_shippingtime' => xtc_db_prepare_input($products_data['shipping_status']), 'products_discount_allowed' => xtc_db_prepare_input($products_data['products_discount_allowed']), 'products_date_available' => $products_date_available, 'products_weight' => xtc_db_prepare_input($products_data['products_weight']), 'products_status' => $products_status, 'products_startpage' => xtc_db_prepare_input($products_data['products_startpage']), 'products_startpage_sort' => xtc_db_prepare_input($products_data['products_startpage_sort']), 'products_tax_class_id' => xtc_db_prepare_input($products_data['products_tax_class_id']), 'product_template' => xtc_db_prepare_input($products_data['info_template']), 'options_template' => xtc_db_prepare_input($products_data['options_template']), 'manufacturers_id' => xtc_db_prepare_input($products_data['manufacturers_id']), 'products_fsk18' => xtc_db_prepare_input($products_data['fsk18']), 'products_vpe_value' => xtc_db_prepare_input($products_data['products_vpe_value']), 'products_vpe_status' => xtc_db_prepare_input($products_data['products_vpe_status']), 'products_vpe' => xtc_db_prepare_input($products_data['products_vpe']));

    und ersetze es mit:
    Code: PHP  [Auswählen]
                    $sql_data_array = array ('products_quantity' => xtc_db_prepare_input($products_data['products_quantity']), 'products_model' => xtc_db_prepare_input($products_data['products_model']), 'products_ean' => xtc_db_prepare_input($products_data['products_ean']), 'products_price' => xtc_db_prepare_input($products_data['products_price']), 'products_sort' => xtc_db_prepare_input($products_data['products_sort']), 'products_shippingtime' => xtc_db_prepare_input($products_data['shipping_status']), 'products_discount_allowed' => xtc_db_prepare_input($products_data['products_discount_allowed']), 'products_date_available' => $products_date_available, 'products_weight' => xtc_db_prepare_input($products_data['products_weight']), 'products_status' => $products_status, 'products_startpage' => xtc_db_prepare_input($products_data['products_startpage']), 'products_startpage_sort' => xtc_db_prepare_input($products_data['products_startpage_sort']), 'products_tax_class_id' => xtc_db_prepare_input($products_data['products_tax_class_id']), 'product_template' => xtc_db_prepare_input($products_data['info_template']), 'options_template' => xtc_db_prepare_input($products_data['options_template']), 'manufacturers_id' => xtc_db_prepare_input($products_data['manufacturers_id']), 'products_fsk18' => xtc_db_prepare_input($products_data['fsk18']), 'products_vpe_value' => xtc_db_prepare_input($products_data['products_vpe_value']), 'products_vpe_status' => xtc_db_prepare_input($products_data['products_vpe_status']), 'products_vpe' => xtc_db_prepare_input($products_data['products_vpe']), 'products_sperrgut' =>  xtc_db_prepare_input($products_data['products_sperrgut']));
    ---------------------------------------------------------------------------------------------------

    Hab übrigens den Download "sperrgut_modul_3plus_fuer_modified eCommerce Shopsoftware_1.05.zip" hier benutzt.

    Gruss
    Ralph

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.724
    • Geschlecht:
    Re: MODUL: Sperrgut Modul 3 Plus für modified eCommerce Shopsoftware
    Antwort #160 am: 30. September 2013, 18:03:22
    Hallo Community.
    Es gibt leider noch ein Fehlerchen in meinem Modul sperrgut_module_admin_config_v1.2.
    Hat jemand zufällig gesehen, ich Penn....

    Wenn man im Backend "Auf checkout_shipping anzeigen" auf "true" stellt, wird der Link zu den Sperrgutkosten immer angezeigt,
    auch wenn kein Artikel mit Sperrgutkosten im Warenkorb ist.
    Das soll natürlich nicht sein ;-).

    Im Anhang neues Paket mit Fehlerbehebung.

    Für die die nur die Änderung, also die Fehlerbehebung einbauen möchten:
    In checkout_shipping.php das hier
    Code: PHP  [Auswählen]
    if(($quotes[$i]['methods'][$j]['id'] != 'freeamount' && $quotes[$i]['methods'][$j]['id'] != 'selfpickup') && MODULE_ORDER_TOTAL_SPERRGUT_SHOW_IN_CHECKOUT_SHIPPING == 'true') {

    hiermit ersetzen:
    Code: PHP  [Auswählen]
    if(($quotes[$i]['methods'][$j]['id'] != 'freeamount' && $quotes[$i]['methods'][$j]['id'] != 'selfpickup') && MODULE_ORDER_TOTAL_SPERRGUT_SHOW_IN_CHECKOUT_SHIPPING == 'true' && isset($_SESSION['sperrgut_tot_exists'])) {

    ----------------------------------------------------

    und in /includes/modules/order_details_cart.php das hier
    Code: PHP  [Auswählen]
    // BOC for sperrgut module, noRiddle
    if ($products[$i]['products_sperrgut'] > 0) {
        $sgprice = xtc_db_query('SELECT configuration_value FROM configuration WHERE configuration_key = "SHIPPING_SPERRGUT_'.$products[$i]['products_sperrgut'].'" ');
        $sgp = xtc_db_fetch_array($sgprice);
        if (MODULE_ORDER_TOTAL_SPERRGUT_METHOD == '1') {
          $sperrgut_price[$i] = $xtPrice->xtcFormat($sgp['configuration_value'] * $products[$i]['quantity'], true);
          $sperrgut_price_tot = $sperrgut_price_tot + ($sgp['configuration_value'] * $products[$i]['quantity']);
        } else if (MODULE_ORDER_TOTAL_SPERRGUT_METHOD == '2') {
          $sperrgut_price[$i] = $xtPrice->xtcFormat($sgp['configuration_value'], true);
          $sperrgut_price_tot = $sperrgut_price_tot + ($sgp['configuration_value']);
        } else if (MODULE_ORDER_TOTAL_SPERRGUT_METHOD == '3') {
          if ($sgp['configuration_value'] > $sperrgut_price_tot) {
            $sperrgut_price_tot = $sgp['configuration_value'];
          } else {
            $sperrgut_price_tot = $sperrgut_price_tot;
          }
        }
    }
    // EOC for sperrgut module, noRiddle

    hiermit ersetzen:
    Code: PHP  [Auswählen]
    // BOC for sperrgut module, noRiddle
    if (isset($_SESSION['sperrgut_tot_exists'])) {unset($_SESSION['sperrgut_tot_exists']);}
    if ($products[$i]['products_sperrgut'] > 0) {
        $sgprice = xtc_db_query('SELECT configuration_value FROM configuration WHERE configuration_key = "SHIPPING_SPERRGUT_'.$products[$i]['products_sperrgut'].'" ');
        $sgp = xtc_db_fetch_array($sgprice);
        if (MODULE_ORDER_TOTAL_SPERRGUT_METHOD == '1') {
          $sperrgut_price[$i] = $xtPrice->xtcFormat($sgp['configuration_value'] * $products[$i]['quantity'], true);
          $sperrgut_price_tot = $sperrgut_price_tot + ($sgp['configuration_value'] * $products[$i]['quantity']);
        } else if (MODULE_ORDER_TOTAL_SPERRGUT_METHOD == '2') {
          $sperrgut_price[$i] = $xtPrice->xtcFormat($sgp['configuration_value'], true);
          $sperrgut_price_tot = $sperrgut_price_tot + ($sgp['configuration_value']);
        } else if (MODULE_ORDER_TOTAL_SPERRGUT_METHOD == '3') {
          if ($sgp['configuration_value'] > $sperrgut_price_tot) {
            $sperrgut_price_tot = $sgp['configuration_value'];
          } else {
            $sperrgut_price_tot = $sperrgut_price_tot;
          }
        }
    }
    if ($sperrgut_price_tot > 0) {$_SESSION['sperrgut_tot_exists'] = true;}
    // EOC for sperrgut module, noRiddle

    Gruß,
    noRiddle

    [EDIT Tomcraft 30.09.2013: Modul in Beitrag 1 aktualisiert.]

    JZ_Aqua

    • Schreiberling
    • Beiträge: 374
    • Geschlecht:
    Re: MODUL: Sperrgut Modul 3 Plus für modified eCommerce Shopsoftware
    Antwort #161 am: 01. Oktober 2013, 08:27:06
    Hallo
    Danke für die Fehlerbereinigung, wird jetzt wenn kein Sperrgut vorhanden ist nicht mehr angezeigt. Ich wollte es am Anfang erst melden, bin aber von einem Einbaufehler ausgegangen und wollte das erst noch einmal in Ruhe durchgehen, bevor ich hier was poste.

    Das einzige was leider immer noch nicht funktioniert ist das Text beim PopUp auf der checkout_shipping Seite angezeigt wird. Die coid ist in der Sprachdatei german.php vergeben und Content natürlich angelegt.

    Auf der Produkt_Info Seite, bei mir die product_info_tabs_v1.html klappt das problemlos und der zusätzliche Content mit der Info zum Sperrgut wird angezeigt.
    Da bin ich leider noch nicht weiter.

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.724
    • Geschlecht:
    Re: MODUL: Sperrgut Modul 3 Plus für modified eCommerce Shopsoftware
    Antwort #162 am: 01. Oktober 2013, 09:48:26
    Hättest du mal einen Link ?
    (zur Not per PM über mein Häuschen links)
    Ansonsten kann ich da leider nichts zu sagen.
    Viel verkehrt gemacht haben kannst du ja eigtl. nicht.

    Gruß,
    noRiddle

    JZ_Aqua

    • Schreiberling
    • Beiträge: 374
    • Geschlecht:
    Re: MODUL: Sperrgut Modul 3 Plus für modified eCommerce Shopsoftware
    Antwort #163 am: 01. Oktober 2013, 10:42:24
    Hallo
    Super, Danke, Link schicke ich Dir gleich zu.

    JZ_Aqua

    • Schreiberling
    • Beiträge: 374
    • Geschlecht:
    Re: MODUL: Sperrgut Modul 3 Plus für modified eCommerce Shopsoftware
    Antwort #164 am: 02. Oktober 2013, 21:44:12
    Hallo
    Nach dem noRiddle gestern so freundlich war das zu testen, kam heraus das es wohl am SSL Proxy liegt. Nach dem ich diesen ausgeschaltet habe, wurde auch der Content im PopUp auf der Checkout_Shipping angezeigt. Habe dann heute ein SSL Zertifikat aufschalten lassen und wollte das Problem als erledigt posten.

    Leider wurde der Inhalt nach aktivierung der SSL Verschlüsslung dann wieder nicht angezeigt. Hier muss ich aber noch genau testen ob nicht noch irgendetwas was ich für die temporäre Nutzung des Proxys aktiviert habe am arbeiten ist.