Here is my scenario.
I've got a few additional price fields on my Drupal 6 Ubercart site.
I've been able to utilize the beautiful commerce_migrate_ubercart_product_type_created() hook to add the additional fields needed on the Destination site when the Product Type migration runs. (this part works and is awesome)
Where I would like some guidance is how to extend the Product migration class to include querying the additional fields on the D6 Ubercart side and mapping those fields to the new destination fields on my D7 Commerce side.
I don't want to modify the Commerce Migration Ubercart class at all, but I'd like to extend it via a class in my own module. (it works if I add the addtional field mapping directly to the Commerce Migrate Ubercart class code... but that is now how I want to do it)
Not having much success here.
Any thoughts on how to extend the class and modify the selection query and add a few field mappings?
Comments
Comment #1
rfayComment #2
marcus178 commentedDid you manage to work anything out, struggling myself and could do with some pointers.
I tried just editing the product.inc file to add the extra field mappings, but adding something like
$this->addFieldMapping('field_event_age', 'field_event_age');doesn't workComment #3
Anonymous (not verified) commentedNo longer applicable in the 7.x-2.x branch as migrate_d2d can be used to handle additional fields.
@marcus178 what you were doing is right, but you need to go to migrate's configure page and click "register statically defined migrations" after making changes like this. I don't think it was possible when you wrote this; but it is now...