It would be nice to have a built-in importer that accepts all of the available Ubercart fields, instead of having to create an importer (especially painful if you are importing attributes).

I have created such an importer and will attach it here for others to try.

Comments

goodeit’s picture

Assigned: Unassigned » goodeit
Status: Active » Needs review
StatusFileSize
new1.66 KB

Here's what I have so far. It's a small re-work of something I've been using for a while. Note that this only imports standard node + product fields, and might not work if you've done anything fancy with Ubercart.

Please let me know of any feedback or problems.

(It's a full module, so just drop the folder into /sites/all/modules and enable it.)

code-brighton’s picture

The module from goodeit in #1 worked brilliantly for me. Thank you!

His explanation of how to use it here http://drupal.org/node/1797778#comment-6687210 was also a great help.

bigmonmulgrew’s picture

Hi I'm quite new to ubercart and I'm trying to use this to import a large number of products.

Your importer has gotten me much further but I'm having the issue that once a product is imported I have to edit the product and check the boxes to "Allow the following roles to view this product's price and add it to the cart"
This is fine with a small number of products but with a large number it takes ages.

Could this be added to the importer somehow or is there a better way to deal with this.

Anandyrh’s picture

Thanks a lot for contributing this great module, I have couple of doubts

1, I have product file download feature, and would like add file name in a column.
2. All the products that are imported are in unpublished state. Can we have another column to mention node published status?

Thanks,
Anand

Anandyrh’s picture

few more are:

3. how to mention the date format in CSV? (Currently I have like: 1 January 2012)

4. And how to mention the hierarchy of taxonomy field?

Anandyrh’s picture

I tried adding below mentioned code to uc_feeds module.

    $targets['uc_file_model'] = array(
    'name' => t('UC: File SKU'),
    'callback' => 'uc_feeds_set_target',
    'description' => 'Ubercart:' . t('File SKU'),
    );`

I can able to see the option while editing the 'Feeds importers > Node process > Mapping' option but when the option is mapped to field and when a csv is imported the product file download feature is not updated

Anandyrh’s picture

any help is appreciated

applaps’s picture

Category: feature » support

Hey guys - I installed your file and am trying to import. After importing I get a green tick and a message 'There are no new nodes'... at the bottom is the file i am trying to test... I assumed that it would create the product type if it didnt exist, but also tried manually creating the product type...

Its also worth mentioning that when I manually create a product, i get the following warnings/errors:

Notice: Undefined property: stdClass::$attributes in uc_feeds_node_insert() (line 123 of /Applications/MAMP/htdocs/drupal-7-1.18/sites/all/modules/uc_feeds/uc_feeds.module).

Warning: Invalid argument supplied for foreach() in uc_feeds_node_insert() (line 123 of /Applications/MAMP/htdocs/drupal-7-1.18/sites/all/modules/uc_feeds/uc_feeds.module).

Any help is greatly appreciated! Thanks :)

Product Name,Description,Image,Product Type,SKU,List price,Cost,Sell price,Weight,Dimensions
Chrome Rim,Awesome mags,test,Wheels,chrome_rim,1,1,1,1,1

EDIT: Wasn't saving CSV file properly... choosing Windows .csv resolved my issue.

reinstallation of moduls seemed to get rid of notice/warning messages

goodeit’s picture

Category: support » feature

restoring category

Anandyrh’s picture

Hi goodeit,

any update on product file download feature, adding product file name as a column in csv?

I am desperately waiting for this feature, as I have 2500+ products having product file attached, and it's gonna be painful job to manually edit all the products just to select the product file feature... please help.

laadidi’s picture

I have the same problem as you, I can not map the document has downloaded Have you found a solution to this problem?

Thanks

Anandyrh’s picture

No... I have decided to manually upload the document on every product :(

Bitvark’s picture

StatusFileSize
new2.42 KB

I've added to the module provided by goodeit (main credit goes to him) the ability to UPDATE attributes and options.
This new module cannot delete attributes and options, it can only add or update them.
I've put it in a sandbox (Ubercart Feeds product updater) for bug reports and easy git download: https://drupal.org/sandbox/Bitvark/2050525

Note on use
- Pay attention: some empty node fields which are not attributes or options, if setted to '', will be setted to '' on import/update: you can lose Node title, SKU and so on if you don't care enough.
- Set nid as unique for updating.
- Try it with a couple of product before using it on many nodes.

See sandbox for more info: https://drupal.org/sandbox/Bitvark/2050525

Haemathemesis’s picture

Issue summary: View changes

Hi, maybe i miss something but i cant find on the mapping settings page the attributes field. I can select all other felds but no attributes. What i do wront.

ps. sommy about my english.