//Articles Prices are disabled, no need to check it again //if(!in_array($row['products_id'], $price20eur)) { // foreach($product_articles[$row['products_id']] as $pa) { // if($pa['price']==20) $price20eur[] = $row['products_id']; // if($pa['price']==0) $price0[] = $row['products_id']; // } //} //Check for valid NavIDs if (!array_key_exists($row['navigation'], $navids)) { $navproblem[] = $row['products_id']; } //CHECK PRODUCT IMAGES if ($row['products_image'] != '') { $product_images[$row['products_id']][] = $row['products_image']; } $extra_images = $class_jc->retrieveCatalogExtraImagesForUpload($row['products_id']); foreach ($extra_images as $ei) { $product_images[$row['products_id']][] = $ei; $product_extra_images[$row['products_id']][] = $ei; } if (count($product_images[$row['products_id']]) > 0) { foreach ($product_images[$row['products_id']] as $pi) { // echo ". "; //$filename = strtolower(basename($pi)); $img_location = DIR_WS_IMAGES . $pi; if ($row['image_uploaded'] != '1') { if (file_exists($img_location)) { $image_size = @getimagesize($img_location); if ($image_size[0] < MIN_PRODUCT_IMAGE_WIDTH) { $imagesproblem[] = $row['products_id']; }
if (!array_key_exists($row['navigation'], $navids) || $row['navigation3'] == '') { $navproblem[] = $pid; } //Check product color if ($row['color'] == '') { $colorproblem[] = $pid; } //Get main image // 08.2014: Having Swarovski Tag is no longer allowed if ($row['products_clear_image'] != '') { $product_images[$pid][] = $row['products_clear_image']; } else { $product_images[$pid][] = $row['products_image']; } //Get extra images $extra_images = $class_jc->retrieveCatalogExtraImagesForUpload($pid); foreach ($extra_images as $ei) { $product_images[$pid][] = $ei; } //Check images status if (count($product_images[$pid]) > 0) { foreach ($product_images[$pid] as $pi) { //$filename = strtolower(basename($pi)); //checking if deactivating products if ($row['active_status'] == '0' && $row['last_active_status'] == '1' || $row['image_uploaded'] == '1') { //THEN IGNORE IMAGE CHECKING continue; } $img_location = DIR_WS_IMAGES . $pi; if (file_exists($img_location)) { $image_size = @getimagesize($img_location);