Posted by dww on November 2, 2009 at 9:29am
Jump to:
| Project: | Ubercart |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | dww |
| Status: | closed (duplicate) |
Issue Summary
Here's a migrate/modules/contrib/uc_product.inc file so that you can import data into uc_product fields. I assume this should live here and not in UberCart?
| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| uc_product.inc_.txt | 1.15 KB | Ignored: Check issue status. | None | None |
Comments
#1
I asked the UberCart folks about this over at #478952-10: Properly namespace UberCart fields in $node, to see if they'd like to maintain this code instead of having it in here.
#2
Moshe said it'd be ideal if the UberCart folks maintain this. It allows you to import uc_product node fields using migrate. Super slick. I've been using this while converting an old osCommerce site to UberCart. Life saver!
Anyway, if this functionality lives in uc_product, you'd just need to append the uc_product_migrate_fields_node() function to uc_product.module, instead of having it as a separate .inc file as is the practice in the migrate.module's codebase... I could re-roll as a patch if desired.
#3
I think this patch should be enough, we'll just need to look through it to make sure nothing slipped through. Any gotchas we should know about, or is straightforward to use?
Also, mega congrats on porting from osC! : P
#4
Seems small enough that we should be able to commit it if they disown it :)
#5
Did Ubercart reject this? I do believe it's better for contrib module support to go into the contrib module, so it can track changes to that module...
#6
@mikeryan: I don't believe they did -- #3 looks like they're considering it. Not sure what moshe was doing with #4. ;)
@rszrama: No gotchas -- it's pretty obvious. If you use migrate.module and select a node type for the destination that's a UC product node type, the uc_product-specific node fields show up as possible targets for data during the import. That's all there is to it.
#7
my mistake
#8
Subscribing
#9
This is working and I believe it's better to add it to Ubercart instead of Migrate, makes more sense to me
#10
The Migrate API has been updated. See: http://drupal.org/node/415190
#11
Could someone write up a patch and I will do some testing on it?
#12
Does the above code still work?
#13
There is diferent way to migrate from one shopping cart to UberCart. It's Cart2Cart - shopping cart migration service which allows to migrate products, customers, orders and other data rom any of 19 most popular shopping carts to UberCart and back.
http://www.shopping-cart-migration.com/
#14
subscribing, also wondering if the inc file is for the dev branch only?
#15
This code worked for me. I don't know the proper way to integrate this, but I just opened migrate/modules/node.migrate.inc and pasted the code at the end. That did the trick.
#16
It worked for me too. Thanks madmatter23
#17
See #850180: Ubercart + Migrate Module - Working module attached.
#18
Closing as duplicate of #850180: Ubercart + Migrate Module - Working module attached.