
Originally Posted by
kaddie
I tried to edit my post but could not. Here is a better description of my issue.
Importing products for the second time. I already imported about 2600 products about 6 months ago. I have been working parttime on my Zen Cart Store. I need to import about 200 more new products and its options and attributes to Zen Cart. However, I do not want to import any images at all. How do I go about doing this. I have image handler installed and all images complete for each product, However, when I import the product images they are over written and change what I have already done. I have to go in and change images back to my handler images (what a pain). I do not want the images imported at all.
Thanks,
Kaddie
Kaddie
OsCommerce Data Importer imports the image files names not the true image files.
If you do not want to have the image file names transferred.
Open file import_osc_products.php around line 505 you will find:
PHP Code:
/********** start of import of products */
target_zen(); // Get target db info
echo '<br /><b>Importing Products ...</b><br />';
$idot = 0;
$ii = 0;
if (count($import_products) > 0) { // Test empty
mysql_query("TRUNCATE `" . $target_db_table_prefix . "products`");
while (list($i, ) = each($import_products)) {
$insert_products = "INSERT INTO " . $target_db_table_prefix . "products SET
products_id = '" . $import_products[$i]['products_id'] . "',
products_quantity = '" . $import_products[$i]['products_quantity'] . "',
products_model = '" . $import_products[$i]['products_model'] . "',
products_image = '" . $import_products[$i]['products_image'] . "',
products_price = '" . $import_products[$i]['products_price'] . "',
products_date_added = '" . $import_products[$i]['products_date_added'] . "',
products_last_modified = '" . $import_products[$i]['products_last_modified'] . "',
products_date_available = '" . $import_products[$i]['products_date_available'] . "',
products_weight = '" . $import_products[$i]['products_weight'] . "',
products_status = '" . $import_products[$i]['products_status'] . "',
products_tax_class_id = '" . $import_products[$i]['products_tax_class_id'] . "',
manufacturers_id = '" . $import_products[$i]['manufacturers_id'] . "',
products_ordered = '" . $import_products[$i]['products_ordered'] . "'
";
Now just delete line 517
PHP Code:
products_image = '" . $import_products[$i]['products_image'] . "',
as shown below:
PHP Code:
/********** start of import of products */
target_zen(); // Get target db info
echo '<br /><b>Importing Products ...</b><br />';
$idot = 0;
$ii = 0;
if (count($import_products) > 0) { // Test empty
mysql_query("TRUNCATE `" . $target_db_table_prefix . "products`");
while (list($i, ) = each($import_products)) {
$insert_products = "INSERT INTO " . $target_db_table_prefix . "products SET
products_id = '" . $import_products[$i]['products_id'] . "',
products_quantity = '" . $import_products[$i]['products_quantity'] . "',
products_model = '" . $import_products[$i]['products_model'] . "',
products_price = '" . $import_products[$i]['products_price'] . "',
products_date_added = '" . $import_products[$i]['products_date_added'] . "',
products_last_modified = '" . $import_products[$i]['products_last_modified'] . "',
products_date_available = '" . $import_products[$i]['products_date_available'] . "',
products_weight = '" . $import_products[$i]['products_weight'] . "',
products_status = '" . $import_products[$i]['products_status'] . "',
products_tax_class_id = '" . $import_products[$i]['products_tax_class_id'] . "',
manufacturers_id = '" . $import_products[$i]['manufacturers_id'] . "',
products_ordered = '" . $import_products[$i]['products_ordered'] . "'
";
This will leave image file name field blank.
Skip