I have isolated the nature of the problem more specifically.
Double checked the encapsulation. The only difference in the results was that live imports started to return a somewhat vague error message to the effect that the import file was either empty or corrupted.
I knew the file was not empty, so I went back to file contents.
While the test imports had not indicated any problems with content, the file I'm using DID include additional columns not related to Abantecart database tables and columns. Removing SOME of these columns resulted in changes in the queries reported to be generated by the test routines, and a (somewhat) successful product import.
The queries generated now look like:
Note the new insert for products_description table, and the absence of attempts to insert data to missing fields in the resource_map table.
The total number of queries generated increased from 360 to 452. The live import was successful to the extent that product data WAS imported. Products were not assigned to the default store, or to categories. This is not unexpected, given that neither was included in the file set. (Note: I've yet to figure out how to assign the product to a store, though I do have an idea for how category assignment should work which I will test in the next few days.)
What was unexpected was that the resource column assignments which I thought would assign a product image file name to the product failed to do so.
So, some progress is being made. Strangely, some foreign column headings (and content!) remained in the file. Content included text and numbers. The columns deleted contained only file names, including some with sub-directories in the paths. This may be a good clue.....
David
Double checked the encapsulation. The only difference in the results was that live imports started to return a somewhat vague error message to the effect that the import file was either empty or corrupted.
I knew the file was not empty, so I went back to file contents.
While the test imports had not indicated any problems with content, the file I'm using DID include additional columns not related to Abantecart database tables and columns. Removing SOME of these columns resulted in changes in the queries reported to be generated by the test routines, and a (somewhat) successful product import.
The queries generated now look like:
Code Select
INSERT INTO `products` SET `product_id` = '', `model` = 'NC28949-1', `weight` = '1', `weight_class_id` = '5', `date_available` = '4/1/2004 13:28', `date_added` = '4/1/2004 13:28', `quantity` = '99999', `price` = '0', `manufacturer_id` = '3', `tax_class_id` = '1', `status` = '0'
INSERT INTO `resource_map` SET `object_name` = 'products', `object_id` = 'new_id', `resource_id` = '', `default` = '', `sort_order` = '', `created` = '', `updated` = ''
INSERT INTO `resource_library` SET `resource_id` = 'new_id', `type_id` = '1', `created` = '', `updated` = ''
INSERT INTO `resource_descriptions` SET `resource_id` = 'new_id', `language_id` = '1', `name` = 'NC28949-1.jpg', `title` = '', `description` = '', `resource_path` = 'NC28949-1.jpg', `resource_code` = '', `created` = '', `updated` = ''
INSERT INTO `product_descriptions` SET `product_id` = 'new_id', `language_id` = '1', `name` = 'Guardian Economy Transfer Seat', `description` = 'The Guardian® Economy Transfer Bench is made of molded-plastic and has a nonslip textured surface and drainage hole. The backrest can be attached on either side. Seat height on this shower transfer bench adjusts from 16 ½" to 21 ½". Thie tub transfer bench fit tubs from 11" to 17" deep. Optional legs with suction cups are availabe on this bath transfer chair to increase stability. Bath transfer bench supports up to 300 lbs.', `meta_description` = 'Economy transfer seats at Life Solutions Plus. Your source for shower transfer benches, bath transfer benches, shower chairs, bath seats.', `meta_keywords` = 'bath transfer bench, shower transfer bench, economy transfer seat, transfer seat, shower chair, bath seat, shower stool, Guardian economy transfer seat, bath tub transfer bench, tub transfer bench, bath chair handicap'Note the new insert for products_description table, and the absence of attempts to insert data to missing fields in the resource_map table.
The total number of queries generated increased from 360 to 452. The live import was successful to the extent that product data WAS imported. Products were not assigned to the default store, or to categories. This is not unexpected, given that neither was included in the file set. (Note: I've yet to figure out how to assign the product to a store, though I do have an idea for how category assignment should work which I will test in the next few days.)
What was unexpected was that the resource column assignments which I thought would assign a product image file name to the product failed to do so.
So, some progress is being made. Strangely, some foreign column headings (and content!) remained in the file. Content included text and numbers. The columns deleted contained only file names, including some with sub-directories in the paths. This may be a good clue.....
David

