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.
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | ubercart_feeds_product_updater.zip | 2.42 KB | Bitvark |
| #1 | uc_feeds_product_importer.zip | 1.66 KB | goodeit |
Comments
Comment #1
goodeit commentedHere'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.)
Comment #2
code-brighton commentedThe 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.
Comment #3
bigmonmulgrew commentedHi 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.
Comment #4
Anandyrh commentedThanks 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
Comment #5
Anandyrh commentedfew 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?
Comment #6
Anandyrh commentedI tried adding below mentioned code to uc_feeds module.
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
Comment #7
Anandyrh commentedany help is appreciated
Comment #8
applaps commentedHey 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
Comment #9
goodeit commentedrestoring category
Comment #10
Anandyrh commentedHi 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.
Comment #11
laadidi commentedI have the same problem as you, I can not map the document has downloaded Have you found a solution to this problem?
Thanks
Comment #12
Anandyrh commentedNo... I have decided to manually upload the document on every product :(
Comment #13
Bitvark commentedI'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
Comment #14
Haemathemesis commentedHi, 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.