Re: Re: Re: uc_importer

macgeek's picture
Offline
Bug Finder
Joined: 08/15/2007
Juice: 36
Re: Re: Re: uc_importer

Thanks Lyle, the php4 version of the importer looks good. Just had 2 errors when I ran it - and they were silly fixes:

Line 744 I changed to:

        $fix = $product_data->unique_hash[0]->data();
        watchdog('importer', '<pre>'. print_r($fix, true) .'</pre>');
        if (!isset($fix)) {

Line 853 I changed to:

          $fix = $attribute_data->default_option[0]->data();
          $default_option = isset($fix) ? (string)$attribute_data->default_option[0]->data() : $attribute_data->options->option[0]->id[0]->data();

In both cases this has to do with php4 seemingly unable to process the following code within a larger

$product_data->unique_hash[0]->data()

But now that that's done, I installed the php4 module (by overwriting the other one in the uc_module folder) and it's not picking it up as a menu item in the store backend like it did with the latest version. Am I missing something?

Import/Export By: futurist (106 replies) Wed, 08/08/2007 - 10:06