1 reply [Last post]
leenwebb's picture
Offline
Joined: 06/01/2008
Juice: 248
Was this information Helpful?

Hey all,
I'm just starting up an Ubercart 2.x site (woo woo!) and am wondering what the current status is for product importing. I remember reading a few months ago that there were many partly-baked solutions, for example one idea was to use a more generic node-import module but it didn't quite work out of the box. Did any of those ideas ever come to fruition?

(I have an intern starting soon, and if there is no import than his very first task will be the exciting one of inputting this massive spreadsheet of products!)

Thanks!

kthull's picture
Offline
Joined: 01/05/2009
Juice: 87
Re: Current status for product import in 2.x?

The "roll your own" approach seems the only way right now. I tried both the Node Import and the Migrate modules (beta and dev versions, respectively) and had no luck. Last night I combined various bits of code picked up here and there and was able to cook up my own php script and import 706 products with cck fields. Scary at first, but it worked. I posted my script in the forums, but it really does take some scouring of these forums and the drupal.org site to find the pieces that will work for your application. What I did glean from all my searching is that your script needs these components:
. bootstrapped drupal (unless you call your script from within a node)
. a way to load your file as an array (whether csv or a mysql table...I used a mysql table)
. field mapping
. node_save

-Kevin