v2.0.x Fehler in checkout_process.php

Thema wurde von Avenger, 20. Juni 2012 erstellt.

  1. Avenger

    Avenger G-WARD 2012/13/14/15

    Registriert seit:
    26. April 2011
    Beiträge:
    4.771
    Danke erhalten:
    1.478
    Danke vergeben:
    89
    "// BOF GM_MOD attributes stock_notifier" wird ausgeführt, auch wenn "ATTRIBUTE_STOCK_CHECK" auf false steht.

    Code ändern zu:

    PHP:
          // BOF GM_MOD attributes stock_notifier
          //Avenger
          
    if (ATTRIBUTE_STOCK_CHECK == 'true')
          {
                  
    $gm_get_attributes_stock xtc_db_query("SELECT
                                                                                                          pd.products_name,
                                                                                                          pa.attributes_stock,
                                                                                                          po.products_options_name,
                                                                                                          pov.products_options_values_name
                                                                                                      FROM
                                                                                                          products_description pd,
                                                                                                          products_attributes pa,
                                                                                                          products_options po,
                                                                                                          products_options_values pov
                                                                                                      WHERE pa.products_id = '" 
    $order->products[$i]['id'] . "'
                                                                         AND pa.options_values_id = '" 
    $order->products[$i]['attributes'][$j]['value_id'] . "'
                                                                         AND pa.options_id = '" 
    $order->products[$i]['attributes'][$j]['option_id'] . "'
                                                                                                       AND po.products_options_id = '" 
    $order->products[$i]['attributes'][$j]['option_id'] . "'
                                                                                                       AND po.language_id = '" 
    $_SESSION['languages_id'] . "'
                                                                                                       AND pov.products_options_values_id = '" 
    $order->products[$i]['attributes'][$j]['value_id'] . "'
                                                                                                       AND pov.language_id = '" 
    $_SESSION['languages_id'] . "'
                                                                                                       AND pd.products_id = '" 
    $order->products[$i]['id'] . "'
                                                                                                       AND pd.language_id = '" 
    $_SESSION['languages_id'] . "'");
                  if(
    xtc_db_num_rows($gm_get_attributes_stock) == 1){
                      
    $gm_attributes_stock_data xtc_db_fetch_array($gm_get_attributes_stock);

                      if(
    $gm_attributes_stock_data['attributes_stock'] <= STOCK_REORDER_LEVEL) {
                          
    $gm_subject GM_OUT_OF_STOCK_NOTIFY_TEXT .' '$gm_attributes_stock_data['products_name'] . ' - ' $gm_attributes_stock_data['products_options_name'] . ': ' $gm_attributes_stock_data['products_options_values_name'];
                          
    $gm_body         GM_OUT_OF_STOCK_NOTIFY_TEXT .': ' . (double)$gm_attributes_stock_data['attributes_stock'] .' ('$gm_attributes_stock_data['products_name'] . ' - ' $gm_attributes_stock_data['products_options_name'] . ': ' $gm_attributes_stock_data['products_options_values_name'] . ")\n\n".
                                                      
    HTTP_SERVER.DIR_WS_CATALOG 'product_info.php?info=p' xtc_get_prid($order->products[$i]['id']);

                          
    xtc_php_mail(STORE_OWNER_EMAIL_ADDRESSSTORE_NAMESTORE_OWNER_EMAIL_ADDRESSSTORE_NAME''STORE_OWNER_EMAIL_ADDRESSSTORE_NAME''''$gm_subjectnl2br(htmlentities($gm_body)), $gm_body);
                      }
                  }
          }
          
    //Avenger
                // EOF GM_MOD attributes stock_notifier