$m = sizeof($product_categories[$i]); for ($j = 0; $j < $m; $j++) { $category_path .= $product_categories[$i][$j]['text'] . '|'; } $category_path = substr($category_path, 0, -1); $kategorie = $category_path; if (ELMAR_PRODUCT_CATEGORY_INDEX < $m) { $category_text = $product_categories[$i][ELMAR_PRODUCT_CATEGORY_INDEX]['text']; $category_id = $product_categories[$i][ELMAR_PRODUCT_CATEGORY_INDEX]['id']; sk_generate_line($category_text, $category_id); } else { sk_generate_line(); } } } else { $kategorie = sk_generate_category_path($products_id); //--> nur bestimmte Produktkategorien #if ($productfiletype!='pangora' || preg_match('/^hardware\|grafikkarten$|software|action/i', $kategorie)) //<-- sk_generate_line(); } } if (!$output_compression) { flush(); } tep_db_free_result($rs); $limit_from += DB_STEP; } while (!$db_part && $count == DB_STEP && $bytes < $to_bytes); if ($fh) { flock($fh, LOCK_UN); // release the lock
$shortDescription = (!empty($model) ? $model . ': ' : '') . $description; if (strlen($shortDescription) > 255) { $decr = 251; while ($decr >= 0 && $shortDescription[$decr] != ' ') { --$decr; } $shortDescription = substr($shortDescription, 0, $decr) . ' ...'; } // Produktname $name = sk_strip_tags_and_entities($product_info['products_name']); // Hersteller $brand = $product_info['manufacturers_name']; // ProduktID $prod_id = $product_info['products_id']; // Kategorie $type = sk_generate_category_path($prod_id); $type = KategorieAnpassen($type); $type = sk_strip_tags_and_entities($type); // Lieferbarkeit "ab Lager" oder "auf Anfrage" entsprechend types.xsd if ($product_info[LIEFERBARKEIT_FELDNAME] > 0) { $lieferbarkeit = 'from stock'; $lieferzeit = LIEFERZEIT_AB_LAGER; } else { $lieferbarkeit = ''; // Lieferbarkeit unbekannt $lieferzeit = ''; // Lieferzeit unbekannt } $id_array = array("shopId" => PROD_ID_IST_ARTIKELNUMMER ? $prod_id : $model); if (defined('ELMAR_PRODUCTS_EAN_FIELD')) { $ean = $product_info[ELMAR_PRODUCTS_EAN_FIELD];