2 replies [Last post]
dado's picture
Offline
Joined: 12/12/2007
Juice: 3
Was this information Helpful?

I'm trying to migrate a my site from zen-cart to ubercart, reading over the documentation and trying to import data did not help much so far. I have a xml file that looks like this

< inventory >
< product >
< itemID >value< /itemID >
< category >value< /category >
< subcategory >value< /subcategory >
< brand >value< /brand >
< item >value< /item >
< model >value< /model >
< pic >value< /pic >
< price >value< /price >
< instock >value< /instock >
< description >value< /description >
< weight >value< /weight >
< retailprice >value< /retailprice >
< upc >value< /upc >
< dimensions >value< /dimensions >
< /product >
< /inventory >

any info on how I need to setup ubercard to accept the data would be greatly appreciated.

TechMosaic's picture
Offline
Joined: 12/12/2007
Juice: 13
Ideas for importing..

I do not have enough experience to be helpful here...in fact, I cannot get import to work on a file I exported from ubercart, so you might be fighting an uphill battle. However, I can tell you that I would suspect you should wrap the entire inventory list with a <store> tag right on top,and each product should have a <name>, sort of a short description. (maybe it is required?)

Also I think there needs to be a <type> for each product as well, with type for my site being just the word 'product' (<type>product</type>)

You could try hand entering just one product, then exporting it to look at the xml it generates. I am not sure you can import something that was exported under a different taxonomy either....it does not appear to be your problem, but perhaps your import fails because you have already created a catalog or vocabularies, etc. that are not identified in the xml. So maybe try importing them into a store that is a fresh setup with no categories.

I hope this helps.

crunchyinmilk's picture
Offline
Joined: 12/12/2007
Juice: 7
Re: Ideas for importing..

I modified uc_product.inc within node import module and it got the data in. Bottom of this thread http://www.ubercart.org/forum/support/2023/import_not_working_trying_sql...

Not great, but an idea for you to start with.

Always dive in head first.