"// 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_ADDRESS, STORE_NAME, STORE_OWNER_EMAIL_ADDRESS, STORE_NAME, '', STORE_OWNER_EMAIL_ADDRESS, STORE_NAME, '', '', $gm_subject, nl2br(htmlentities($gm_body)), $gm_body); } } } //Avenger // EOF GM_MOD attributes stock_notifier