Downloads
Download tar.gz
10.61 KB
MD5: 489b63065a84223483a09c1a554cb1fe
SHA-1: 04bfc4ec2ec38d937df276bf217a65f468f60670
SHA-256: 769968ab91d7f5a477efd7ef37deb22f6ffc24a2622c458c4d6015d0895c04f8
Download zip
13.22 KB
MD5: 8105eed41d30e855aa35954bca24e60a
SHA-1: d560ec4dc66cfd0eb2c2cd8880b1124775864701
SHA-256: 64d8865395e567b5d4c93ca9b18190baddf37b01f4e6071c3f50c25b9ab1cb2a
Release notes
first working release
for using it You have to select OpenERP fetcher, OpenERP Parser and node processor
Import feeds from this code (cut)
$feeds_importer = new stdClass;
$feeds_importer->disabled = FALSE; /* Edit this to true to make a default feeds_importer disabled initially */
$feeds_importer->api_version = 1;
$feeds_importer->id = 'openerp';
$feeds_importer->config = array(
'name' => 'OpenERP',
'description' => 'OpenERP dev feed',
'fetcher' => array(
'plugin_key' => 'OpenERP_Fetcher',
'config' => array(
'openerp_models' => 'product.product',
'openerp_offset' => '0',
'openerp_limit' => '1000',
),
),
'parser' => array(
'plugin_key' => 'OpenERP_Parser',
'config' => array(
'ofeeds_fields' => array(
'id' => 'id',
'state' => 'state',
'name' => 'name',
'warranty' => 0,
'ean13' => 0,
'supply_method' => 0,
'uos_id' => 0,
'list_price' => 0,
'weight' => 0,
'track_production' => 0,
'incoming_qty' => 0,
'standard_price' => 0,
'cost_method' => 0,
'price_extra' => 0,
'mes_type' => 0,
'uom_id' => 0,
'code' => 0,
'description_purchase' => 0,
'default_code' => 0,
'name_template' => 0,
'property_account_income' => 0,
'lst_price' => 0,
'price' => 0,
'location_id' => 0,
'uos_coeff' => 0,
'procure_method' => 0,
'sale_ok' => 0,
'qty_available' => 0,
'purchase_ok' => 0,
'product_manager' => 0,
'property_stock_account_output' => 0,
'track_outgoing' => 0,
'company_id' => 0,
'product_tmpl_id' => 0,
'loc_rack' => 0,
'uom_po_id' => 0,
'pricelist_id' => 0,
'price_margin' => 0,
'property_stock_account_input' => 0,
'x_site_data' => 0,
'loc_case' => 0,
'description' => 0,
'track_incoming' => 0,
'property_stock_production' => 0,
'seller_qty' => 0,
'supplier_taxes_id' => 0,
'volume' => 0,
'outgoing_qty' => 0,
'loc_row' => 0,
'description_sale' => 0,
'active' => 0,
'property_stock_inventory' => 0,
'variants' => 0,
'partner_ref' => 0,
'valuation' => 0,
'seller_delay' => 0,
'weight_net' => 0,
'packaging' => 0,
'seller_id' => 0,
'sale_delay' => 0,
'type' => 0,
'property_account_expense' => 0,
'categ_id' => 0,
'virtual_available' => 0,
'property_stock_procurement' => 0,
'taxes_id' => 0,
'produce_delay' => 0,
'seller_ids' => 0,
'rental' => 0,
),
),
),
'processor' => array(
'plugin_key' => 'FeedsNodeProcessor',
'config' => array(
'content_type' => 'product',
'input_format' => '0',
'update_existing' => '2',
'expire' => '-1',
'mappings' => array(
0 => array(
'source' => 'id',
'target' => 'model',
'unique' => FALSE,
),
1 => array(
'source' => 'name',
'target' => 'title',
'unique' => FALSE,
),
2 => array(
'source' => 'id',
'target' => 'guid',
'unique' => 1,
),
3 => array(
'source' => 'lst_price',
'target' => 'sell_price',
'unique' => FALSE,
),
4 => array(
'source' => 'standard_price',
'target' => 'list_price',
'unique' => FALSE,
),
),
'author' => 0,
),
),
'content_type' => '',
'update' => 0,
'import_period' => 1800,
'expire_period' => 3600,
'import_on_create' => TRUE,
);
In OpenERP Fetcher config form You have to select product.product model
offset 0 and limit for example 1000
then You can configure mapping and after all importing into ubercart or just simple nodes are ready
Good luck
Version mostly for developers but if You want to paticipate in sponsorship - contact me for additional information