Re: Re: Re: Re: Excellent
Import/Export (105 replies) Wed, 08/08/2007 - 09:06
- Patch for uc_importer for CSV export (08/20/2008 - 02:27)
- What's the final word. (03/17/2010 - 16:53)
- Only 1 product imported (06/21/2008 - 11:42)
- Please send me your xml (06/27/2008 - 07:14)
- Re: Please send me your xml (06/27/2008 - 09:03)
- Re: Re: Please send me your xml (06/28/2008 - 05:56)
- Re: Re: Re: Please send me your xml (06/30/2008 - 08:38)
- Creates revisions (06/27/2008 - 10:14)
- Re: Re: Please send me your xml (06/28/2008 - 05:56)
- Re: Please send me your xml (06/27/2008 - 09:03)
- Please send me your xml (06/27/2008 - 07:14)
- Re: Import/Export (01/05/2008 - 21:55)
- Re: Re: Import/Export (01/07/2008 - 08:59)
- Re: Re: Re: Import/Export (03/19/2008 - 06:51)
- export with CCK fields to spreadsheet (04/04/2008 - 13:43)
- Re: Re: Re: Import/Export (03/19/2008 - 06:51)
- Re: Re: Import/Export (01/07/2008 - 08:59)
- I'm keen to see a CSV import (08/08/2007 - 09:47)
- There is a schema definition (08/08/2007 - 09:55)
- Re: There is a schema definition (08/15/2007 - 11:15)
- Re: Re: There is a schema definition (08/15/2007 - 11:42)
- Re: Re: Re: There is a schema definition (08/16/2007 - 11:05)
- Thanks, Lyle. I've added ... (08/16/2007 - 09:41)
- xml -> ubercart (08/15/2007 - 14:29)
- Re: xml -> ubercart (08/15/2007 - 14:39)
- uc_importer (08/15/2007 - 15:09)
- Re: uc_importer (08/15/2007 - 15:16)
- Re: Re: uc_importer (08/16/2007 - 12:24)
- Re: Re: Re: uc_importer (08/16/2007 - 18:28)
- Maybe? (08/16/2007 - 18:37)
- Re: Maybe? (08/18/2007 - 04:36)
- Re: Re: Maybe? (08/20/2007 - 14:04)
- Re: Re: Re: Maybe? (08/20/2007 - 16:56)
- Re: Re: Re: Re: Maybe? (08/20/2007 - 17:30)
- Re: Re: Re: Re: Re: Maybe? (08/21/2007 - 08:00)
- Re: Re: Re: Re: Re: Re: Maybe? (08/21/2007 - 14:31)
- Re: Re: Re: Re: Re: Re: Re: Maybe? (08/21/2007 - 16:00)
- Re: Re: Re: Re: Re: Re: Re: Re: Maybe? (08/22/2007 - 08:47)
- I win! (08/22/2007 - 09:25)
- Re: I win! (08/22/2007 - 12:29)
- Re: Re: I win! (08/23/2007 - 16:55)
- Re: I win! (08/22/2007 - 12:29)
- Re: Re: Re: Re: Re: Re: Re: Re: Re: Maybe? (08/22/2007 - 09:24)
- I win! (08/22/2007 - 09:25)
- htaccess (08/22/2007 - 07:44)
- Re: Re: Re: Re: Re: Re: Re: Re: Maybe? (08/22/2007 - 08:47)
- Re: Re: Re: Re: Re: Re: Re: Maybe? (08/21/2007 - 14:47)
- export -> import isn't working (08/24/2007 - 16:20)
- I got these errors tonight
# (08/25/2007 - 22:36)
- Re: I got these errors tonight
# (08/25/2007 - 23:01)
- Re: Re: I got these errors tonight
# (08/27/2007 - 10:05)
- csv -> xml conversion script (08/27/2007 - 19:02)
- SimpleStock (08/27/2007 - 10:43)
- Re: SimpleStock (08/27/2007 - 10:48)
- Re: Re: SimpleStock (08/28/2007 - 11:05)
- Image import (09/03/2007 - 09:16)
- Re: Image import (09/04/2007 - 08:07)
- Re: Re: Image import (09/04/2007 - 08:19)
- Re: Re: Re: Image import (09/04/2007 - 08:39)
- Re: Re: Re: Re: Image import (09/04/2007 - 10:15)
- Re: Re: Re: Re: Re: Image import (09/06/2007 - 11:55)
- Re: Re: Re: Re: Re: Re: Image import (09/06/2007 - 13:37)
- Re: Re: Re: Re: Re: Re: Re: Image import (09/06/2007 - 15:36)
- Nice. I actually might be (09/07/2007 - 12:50)
- Re: Re: Re: Re: Re: Re: Re: Image import (09/06/2007 - 15:36)
- Re: Re: Re: Re: Re: Re: Image import (09/06/2007 - 12:20)
- Re: Re: Re: Re: Re: Re: Re: Image import (10/10/2007 - 17:26)
- Oh.. hold on a minute.
I'm (10/10/2007 - 17:29)
- Re: Oh.. hold on a minute.
I'm (10/10/2007 - 17:49)
- Re: Re: Oh.. hold on a minute.
I'm (10/11/2007 - 07:02)
- Re: Re: Re: Oh.. hold on a minute.
I'm (10/11/2007 - 08:44)
- Re: Re: Re: Re: Oh.. hold on a minute.
I'm (10/11/2007 - 09:46)
- Re: Re: Re: Re: Re: Oh.. hold on a minute.
I'm (10/11/2007 - 14:54)
- Re: Re: Re: Re: Re: Re: Oh.. hold on a minute. (10/11/2007 - 15:09)
- Re: Re: Re: Re: Re: Re: Re: Oh.. hold on a minute. (10/11/2007 - 17:11)
- Re: Re: Re: Re: Re: Re: Re: Re: Oh.. hold on a minute. (10/14/2007 - 09:06)
- Importer updates. (10/15/2007 - 16:18)
- Re: Importer updates. (10/18/2007 - 14:38)
- Only first product getting imported (01/03/2008 - 09:40)
- Re: Only first product getting imported (01/03/2008 - 10:07)
- Lyle -
Wow - that was (01/03/2008 - 10:21)
- Re: Lyle - Wow - that was (01/03/2008 - 16:11)
- Lyle -
Wow - that was (01/03/2008 - 10:21)
- Re: Only first product getting imported (01/03/2008 - 10:07)
- Only first product getting imported (01/03/2008 - 09:40)
- Re: Importer updates. (10/18/2007 - 14:38)
- Importer updates. (10/15/2007 - 16:18)
- Re: Re: Re: Re: Re: Re: Re: Re: Oh.. hold on a minute. (10/14/2007 - 09:06)
- Re: Re: Re: Re: Re: Re: Re: Oh.. hold on a minute. (10/11/2007 - 17:11)
- Re: Re: Re: Re: Re: Re: Oh.. hold on a minute. (10/11/2007 - 15:09)
- Re: Re: Re: Re: Re: Oh.. hold on a minute.
I'm (10/11/2007 - 14:54)
- Re: Re: Re: Re: Oh.. hold on a minute.
I'm (10/11/2007 - 09:46)
- Re: Re: Re: Oh.. hold on a minute.
I'm (10/11/2007 - 08:44)
- Re: Re: Oh.. hold on a minute.
I'm (10/11/2007 - 07:02)
- Re: Oh.. hold on a minute.
I'm (10/10/2007 - 17:49)
- Oh.. hold on a minute.
I'm (10/10/2007 - 17:29)
- Re: Re: Re: Re: Re: Re: Re: Image import (10/10/2007 - 17:26)
- Re: Re: Re: Re: Re: Re: Image import (09/06/2007 - 13:37)
- macgeek, et al .... (09/06/2007 - 11:07)
- Re: macgeek, et al .... (09/06/2007 - 11:13)
- catorhans: I didn't realize (09/06/2007 - 12:34)
- Re: macgeek, et al .... (09/06/2007 - 11:13)
- Re: Re: Re: Re: Re: Image import (09/06/2007 - 11:55)
- Re: Re: Re: Re: Image import (09/04/2007 - 10:15)
- Re: Re: Re: Image import (09/04/2007 - 08:39)
- Re: Re: Image import (09/04/2007 - 08:19)
- Re: Image import (09/04/2007 - 08:07)
- Image import (09/03/2007 - 09:16)
- Re: Re: SimpleStock (08/28/2007 - 03:35)
- aaah, function (08/28/2007 - 05:40)
- Re: Re: SimpleStock (08/28/2007 - 11:05)
- Re: SimpleStock (08/27/2007 - 10:48)
- Re: Re: I got these errors tonight
# (08/27/2007 - 10:05)
- Re: I got these errors tonight
# (08/25/2007 - 23:01)
- I got these errors tonight
# (08/25/2007 - 22:36)
- export -> import isn't working (08/24/2007 - 16:20)
- Re: Re: Re: Re: Re: Re: Re: Maybe? (08/21/2007 - 16:00)
- Re: Re: Re: Re: Re: Re: Maybe? (08/21/2007 - 14:31)
- Re: Re: Re: Re: Re: Maybe? (08/21/2007 - 08:00)
- Re: Re: Re: Re: Maybe? (08/20/2007 - 17:30)
- Re: Re: Re: Maybe? (08/20/2007 - 16:56)
- Re: Re: Maybe? (08/20/2007 - 14:04)
- Re: Maybe? (08/18/2007 - 04:36)
- Maybe? (08/16/2007 - 18:37)
- Re: Re: Re: uc_importer (08/16/2007 - 15:56)
- csv importer (08/16/2007 - 16:33)
- Re: Re: Re: uc_importer (08/16/2007 - 15:52)
- Categories not being assigned to products (08/22/2008 - 06:20)
- Re: Categories not being assigned to products (08/22/2008 - 09:26)
- Imported content is missing some (not all) newlines (08/23/2008 - 06:26)
- Re: Categories not being assigned to products (08/22/2008 - 09:26)
- Re: Re: Re: Re: uc_importer (08/16/2007 - 16:03)
- No more orphaned products (08/21/2007 - 12:49)
- Your new documentation is a (08/17/2007 - 06:21)
- Newbie error (08/17/2007 - 06:58)
- Re: Newbie error (08/17/2007 - 12:11)
- Re: Re: Newbie error (08/17/2007 - 14:25)
- Re: Newbie error (08/17/2007 - 11:40)
- Re: Newbie error (08/17/2007 - 12:11)
- Newbie error (08/17/2007 - 06:58)
- Categories not being assigned to products (08/22/2008 - 06:20)
- Re: Re: Re: uc_importer (08/16/2007 - 18:28)
- Excellent (08/15/2007 - 15:33)
- I'll now format into the (08/15/2007 - 20:15)
- Field definitions (08/16/2007 - 03:13)
- converter code (08/16/2007 - 09:22)
- Field definitions (08/16/2007 - 03:13)
- Re: Excellent (08/15/2007 - 15:35)
- Re: Re: Excellent (08/15/2007 - 15:40)
- Re: Re: Re: Excellent (08/15/2007 - 20:08)
- Re: Re: Re: Re: Excellent (08/16/2007 - 09:34)
- Re: Re: Re: Excellent (08/15/2007 - 20:08)
- Re: Re: Excellent (08/15/2007 - 15:40)
- I'll now format into the (08/15/2007 - 20:15)
- Super-fast reply day! (08/15/2007 - 15:23)
- Re: Re: uc_importer (08/16/2007 - 12:24)
- Re: uc_importer (08/15/2007 - 15:16)
- uc_importer (08/15/2007 - 15:09)
- Re: xml -> ubercart (08/15/2007 - 14:39)
- Re: Re: There is a schema definition (08/15/2007 - 11:42)
- Re: There is a schema definition (08/09/2007 - 23:53)
- Re: There is a schema definition (08/15/2007 - 11:15)
- There is a schema definition (08/08/2007 - 09:55)

druru, I went with XML mostly because I was familiar with it. (I really wanted to use YAML, but PHP doesn't have an easy library for it, and everybody said no one would know what to do with it.) While CSV is technically simpler, I wasn't sure I would be able to represent things like attributes and categories easily because you don't know how many each product is going to have. I'm sure there's a technique that most people know, but I didn't, and I didn't try to find out what it was.
I would say that the two conversion steps is only useful if you already have a way to generate a CSV file of your store. If it has all of the compatible data, I think it would be easier to make XML from that than trudging through the database again.
I agree that the importer needs to be documented. I think it's as abstract as it can get because I'm using functions like node_save() and drupal_execute() whenever the data is retrieved from the XML file. I don't think I (personally) will write any other import methods, but I think anyone who wants to can emulate what's already been done.