Ξέρει κάποιος πως θα βάλουμε το migrate module να συμπεριλάβει destination fields τα field του ubercart.
Το παρακάτω δίνει μόνο του node για mapping
$this->destination = new MigrateDestinationNode('general_product');
Τελικά την βρήκα τη λύση:
Έπρεπε να βάλω hardcoded το εξής κομμάτι στο uc_products.module
/**
* Implement hook_migrate_fields_node().
*/
function uc_product_migrate_fields_node($type) {
$fields = array();
$node_type = node_get_types('type', $type);
if ($node_type->module == 'uc_product') {
$fields = array(
'model' => t('UberCart: Model/SKU'),
'list_price' => t('UberCart: List price'),
'cost' => t('UberCart: Cost'),
'sell_price' => t('UberCart: Sell price'),
'weight' => t('UberCart: Weight'),
'weight_units' => t('UberCart: Weight units'),
'length' => t('UberCart: Length'),
'width' => t('UberCart: Width'),
'height' => t('UberCart: Height'),
'length_units' => t('UberCart: Length units'),
'pkg_qty' => t('UberCart: Package quantity'),
'default_qty' => t('UberCart: Default quantity to add to cart'),
'ordering' => t('UberCart: List position'),
'shippable' => t('UberCart: Product and its derivatives are shippable'),
);
}
return $fields;
}
Με αυτό τον τρόπο φορτώνονται στο node τα fields του ubercart και μετά γίνονται κανονικά map. Δεν είναι ότι καλύτερο αλλά λειτουργεί!