rechtstexte für onlineshop
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: Warenwirtschaftsemail geht bei modified nicht mehr

    Glera77

    • Fördermitglied
    • Beiträge: 78
    Hallo,

    bei der Umstellung von xtc 3.04 SP1 auf xtc modified steh ich grad vor einem Problem. Und zwar wird bei jeder email eine zusaetzliche email mit an die warenwirtschaft verschickt. Bei 3.04 lief es einwandfrei, bei modified tritt ein kleines Problem auf, es wird fast alles uebermittelt, aber die einzelnen artikelnummern der beim artikel hinterlegten attribute werden nicht mehr übertragen. Ich selbst bin kein vollprofi, hab auch schon gesucht, aber ich find nix.

    hier mal ein Ausschnitt aus dem code der datei, die die warenwirtschaftsmail generiert:

     
    Code: PHP  [Auswählen]
    $orders_products_query = xtc_db_query("SELECT orders_products_id, products_name, products_model, products_quantity, final_price FROM " . TABLE_ORDERS_PRODUCTS . " WHERE orders_id = '" . xtc_db_input($insert_id) . "'");
      while ($orders_products = xtc_db_fetch_array($orders_products_query))
      {
        $fuman .= $br.'*<ARTIKELPOSITION>*'.$orders_products['products_model'].','.$orders_products['products_quantity'].','.(($orders_products['products_quantity'] > 0) ? ($orders_products['final_price']/$orders_products['products_quantity']) : $orders_products['final_price']);
        $fuman .= $br.'*<ARTIKELTEXT>*'.$orders_products['products_name'];

        $attributes_query = xtc_db_query("SELECT products_options, products_options_values, options_values_model, options_values_price, options_values_quantity FROM " . TABLE_ORDERS_PRODUCTS_ATTRIBUTES . " WHERE orders_id = '" . xtc_db_input($insert_id) . "' AND orders_products_id = '" . $orders_products['orders_products_id'] . "'");
        if (xtc_db_num_rows($attributes_query))
        {
          while ($attributes = xtc_db_fetch_array($attributes_query))
          {
            if (!empty($attributes['options_values_model'])) {
              $fuman .= $br.'*<ARTIKELPOSITION>*'.$attributes['options_values_model'].','.($orders_products['products_quantity'] * $attributes['options_values_quantity']).',0';
            }
            $fuman .= $br.'*<ARTIKELTEXT>*'.$attributes['products_options'].': '.$attributes['products_options_values'];
          }
        }
      }

    Ich weiss, das er sich halt die artikelnummer aus der ORDERS_PRODUCTS_ATTRIBUTES inner db holt (options_values_model), und wie gesagt, bei xtc 3.04 lief es, und die table sieht ja auch genauso aus, aber irgendwie wills bei modified nicht mehr...

    brauch hilfe :D

    [EDIT jannemann 02.08.2012: Code richtig formatiert]

    Linkback: https://www.modified-shop.org/forum/index.php?topic=21475.0
    5 Antworten
    3217 Aufrufe
    08. März 2014, 20:46:44 von Niksim
    11 Antworten
    5079 Aufrufe
    11. Oktober 2013, 23:48:38 von burrito
    4 Antworten
    2292 Aufrufe
    12. Dezember 2010, 11:02:50 von preusen4
    22 Antworten
    12263 Aufrufe
    04. April 2011, 07:56:00 von jumpmore
               
    anything