Werbung / Banner buchen
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: Bugfix - Attribute kopieren

    web28

    • modified Team
    • Beiträge: 9.404
    Bugfix - Attribute kopieren
    am: 29. März 2009, 10:48:57
    Hallo,

    bei XTC SP 2.1 wird beim Kopieren von Attributen die Sortierung nicht mitkopiert. (sortorder wurde anscheinend vergessen)

    Datei admin/new_attibutes.php

    OHNE sortorder

    Code: PHP  [Auswählen]
    if ($_POST['copy_product_id'] != 0) {
              $attrib_query = xtc_db_query("SELECT products_id, options_id, options_values_id, options_values_price, price_prefix, attributes_model, attributes_stock, options_values_weight, weight_prefix FROM ".TABLE_PRODUCTS_ATTRIBUTES." WHERE products_id = " . $_POST['copy_product_id']);
              while ($attrib_res = xtc_db_fetch_array($attrib_query)) {
                  xtc_db_query("INSERT into ".TABLE_PRODUCTS_ATTRIBUTES." (products_id, options_id, options_values_id, options_values_price, price_prefix, attributes_model, attributes_stock, options_values_weight, weight_prefix) VALUES ('" . $_POST['current_product_id'] . "', '" . $attrib_res['options_id'] . "', '" . $attrib_res['options_values_id'] . "', '" . $attrib_res['options_values_price'] . "', '" . $attrib_res['price_prefix'] . "', '" . $attrib_res['attributes_model'] . "', '" . $attrib_res['attributes_stock'] . "', '" . $attrib_res['options_values_weight'] . "', '" . $attrib_res['weight_prefix'] . "')");
              }
          }
     
    MIT sortorder

    Code: PHP  [Auswählen]
    if ($_POST['copy_product_id'] != 0) {
              $attrib_query = xtc_db_query("SELECT products_id, options_id, options_values_id, options_values_price, price_prefix, attributes_model, attributes_stock, options_values_weight, weight_prefix, sortorder FROM ".TABLE_PRODUCTS_ATTRIBUTES." WHERE products_id = " . $_POST['copy_product_id']);
              while ($attrib_res = xtc_db_fetch_array($attrib_query)) {
                  xtc_db_query("INSERT into ".TABLE_PRODUCTS_ATTRIBUTES." (products_id, options_id, options_values_id, options_values_price, price_prefix, attributes_model, attributes_stock, options_values_weight, weight_prefix, sortorder) VALUES ('" . $_POST['current_product_id'] . "', '" . $attrib_res['options_id'] . "', '" . $attrib_res['options_values_id'] . "', '" . $attrib_res['options_values_price'] . "', '" . $attrib_res['price_prefix'] . "', '" . $attrib_res['attributes_model'] . "', '" . $attrib_res['attributes_stock'] . "', '" . $attrib_res['options_values_weight'] . "', '" . $attrib_res['weight_prefix'] . "', '" . $attrib_res['sortorder'] . "')");
              }
          }
     
    Gruss Web28

    PS Schade, das man hier keine Zip-Dateien uploaden kann



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

    Anonym

    • Gast
    Bugfix - Attribute kopieren
    Antwort #1 am: 29. März 2009, 12:30:37
    Hi Danke...

    Wieso kannst Du kein Zip hochladen ? Steht doch in der Liste

    Anonym

    • Gast
    Bugfix - Attribute kopieren
    Antwort #2 am: 29. März 2009, 13:20:40
    Hallo web28,

    versuch mal einen anderen Browser zum Hochladen der zip, es könnte daran liegen.
    Kenn den Fehler von anderen Foren, mit dem einen Browser gehts, mit dem anderen nicht.
    Liegt daran, dass die MIME types von den Browsern oft unterschiedlich erkannt werden.

    web28

    • modified Team
    • Beiträge: 9.404
    Bugfix - Attribute kopieren
    Antwort #3 am: 29. März 2009, 13:31:45
    Hallo,

    ob Firefox oder IE

    Bei mir ist keine Zip-Datei erlaubt, ist für mich wohl nicht freigeschaltet.

    Siehe Screenshot

    Gruss Web28

      [ Für Gäste sind keine Dateianhänge sichtbar ]

    kaisa

    • Schreiberling
    • Beiträge: 366
    Re: Bugfix - Attribute kopieren
    Antwort #4 am: 27. Januar 2021, 01:37:16
    Alter Thread aber noch aktuell, denn auch Downloadattribute werden nach wie vor nicht mitkopiert. Downloadanzahl und Tageslimit, um es genau zu sagen. Vers. 1.06 bis 2.0.5.1

    [EDIT Tomcraft 27.01.2021: Shopversion korrigiert, siehe: FAQ: Wichtiger Hinweis bzgl. Angabe der Shopversion!]

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.197
    • Geschlecht:
    Re: Bugfix - Attribute kopieren
    Antwort #5 am: 27. Januar 2021, 12:21:08
    Ich habe das in Ticket #1966 festgehalten.

    Grüße

    Torsten
    0 Antworten
    1740 Aufrufe
    03. September 2013, 12:56:09 von LouCyfer
    28 Antworten
    12971 Aufrufe
    10. Oktober 2009, 00:16:35 von zx6r
    1 Antworten
    3903 Aufrufe
    12. Februar 2009, 20:30:57 von Anonym
               
    anything