- 🇳🇿New Zealand quietone
It has been 11 years since there was discussion on this issue. Considering that and that sites should be migrating to Drupal 10 I am closing this issue. Since a bug was not found, changing to a support request.
Hi there,
I can't write anything in the product_field... It just doesn't import without any error message :-(
I am stick with this for so long time now...
I have tried everything.
Fir info, here is my migrate code:
class DidsProductDisplayImportMigration extends DidsMigration {
public function __construct() {
parent::__construct();
$this->description = t('Test Phone numbers integration');
$this->dependencies = array('DidsProductImport');
$this->map = new MigrateSQLMap($this->machineName,
array(
'id_number' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'alias' => 'dids2',
)
),
MigrateDestinationNode::getKeySchema()
);
$query = db_select('dids', 'dids2')
->fields('dids2', array('id_number', 'country', 'phone_number', 'class', 'prefix', 'billing_interval', 'status','price'));
$this->source = new MigrateSourceSQL($query);
// Mapped fields
$this->destination = new MigrateDestinationEntityAPI('commerce_product', 'did');
$this->destination = new MigrateDestinationNode('did_display');
// For a multivalued import, see the field_migrate_example_country mapping
// in the Migrate Example in beer.inc.
// Here we do a single SKU per product node.
$this->addFieldMapping('field_product_reference', 'phone_number')->sourceMigration('DidsProductImport');
$this->addFieldMapping('title','phone_number')
->description(t('Mapping title'));
$this->addFieldMapping('pathauto','phone_number')
->description(t('Mapping status'));
// Unmapped destination fields
$this->addUnmigratedDestinations(array('country', 'class', 'prefix', 'billing_interval', 'status','price'));
}
}
Thanks in advance...
Closed: outdated
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
It has been 11 years since there was discussion on this issue. Considering that and that sites should be migrating to Drupal 10 I am closing this issue. Since a bug was not found, changing to a support request.