Magmi 사용에 대한 조언을 드릴 수는 없지만 ApiImport이라는 무료 모듈 용으로 뻔뻔한 플러그를 넣을 것입니다. ImportExport 기반이며 무료입니다.
가져 오기는 데이터를 배열로 제공하여 수행됩니다.
프로그래밍이 엔티티를 생성하는 방법에 대한 자세한을 원하는 경우에
<?php
require_once 'app/Mage.php';
Mage::init();
$entities = array(
// Configurable product.
array(
'description' => 'Some description',
'_attribute_set' => 'Default',
'short_description' => 'Some short description',
'_product_websites' => 'base',
'status' => Mage_Catalog_Model_Product_Status::STATUS_ENABLED,
'visibility' => Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH,
'tax_class_id' => 0,
'is_in_stock' => 1,
'sku' => 'some_configurable',
'_type' => Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE,
'name' => 'Some configurable',
'price' => rand(1, 1000),
'weight' => rand(1, 1000),
// Link the first simple product:
'_super_products_sku' => 'my_red_blue_simple',
'_super_attribute_code' => 'color',
'_super_attribute_option' => 'blue'
),
// Now optionally link some more simple products:
array(
'_super_products_sku' => 'my_red_simple_product',
'_super_attribute_code' => 'color',
'_super_attribute_option' => 'red'
)
);
// Start the import.
Mage::getModel('api_import/import_api')->importEntities(
$entities,
Mage_ImportExport_Model_Export_Entity_Product::getEntityTypeCode()
);
, 당신은 Test helper in ApiImport 살펴 수 : 하나의 구성 제품을 가져 오기만큼 간단합니다. 모든 제품 유형 및 고객을 대상으로 임의의 제품을 생성 할 수 있습니다.
는 또한 질문 :
행운을 요청하기 전에 당신이 Frequently Asked Questions 먼저 읽어 보는 것이 좋습니다. magmi가 구성 가능한을 가져 오기 위해
magic을 사용하여 가져올 수있었습니다. 이전에 CSV에있는 coloumn 이름이 wiki 문서별로 맞지 않았습니다. 감사합니다. –