2017-02-24 3 views
0

일부 제품을 Magento로 가져 오기 위해 Magmi 데이터 펌프를 사용하고 있습니다.Magmi 데이터 펌프를 사용하여 외부 URL에서 이미지 가져 오기

require_once("../../magmi/inc/magmi_defs.php"); 
require_once("../../magmi/integration/inc/magmi_datapump.php"); 

$dp = Magmi_DataPumpFactory::getDataPumpInstance("productimport"); 

$dp->beginImportSession("Default","create"); 

$newProductData = array(
    'type'     => 'simple', 
    'sku'     => "test-simple", 
    'qty'     => 1000, 
    'color'     => 'Brown', 
    'price'     => 10, 
    'name'     => 'test simple', 
    'tax_class_id'   => 1, 
    'is_in_stock'   => 1, 
    'store'     => 'admin', 
    'economic_productgroup' => 700, 
    'image'     => '+http://blogs.smh.com.au/entertainment/getflickd/44655_native.jpeg.jpg', 
    'small_image'   => 'http://blogs.smh.com.au/entertainment/getflickd/44655_native.jpeg.jpg', 
    'thumbnail'    => 'http://blogs.smh.com.au/entertainment/getflickd/44655_native.jpeg.jpg' 
); 

$dp->ingest($newProductData); 

$dp->endImportSession(); 

모든 속성은 이미지를 제외하고, 올바르게 가져 얻고있다 :

지금까지 나는이 있습니다. 이것은 작동하지 않습니다.

"기본"프로필의 스크린 샷입니다.

enter image description here

enter image description here

Magmi 여기에 설치됩니다 http://www.example.com/import/magmi/web/magmi.php

가 왜 내 이미지의 가져 오기를 작동하지?

답변

0

"기본"프로필과 동일한 설정으로 웹 인터페이스에 새 프로필을 작성하면 문제가 해결됩니다. 왜 그래도.