我正在使用数据泵,一切都很好,但我需要添加图像处理器。到目前为止还没有运气。有人知道怎么做吗?这是文档。这是我工作的代码。我没有把变量放进去。
require_once(MAGENTO."/magmi/integration/magmi_datapump.php");
class TestLogger{
public function log($data,$type){
$mess.="$type:$data\n";
}
}
$dp=Magmi_DataPumpFactory::getDataPumpInstance("productimport");
$dp->beginImportSession("default","create",new TestLogger());
$item=array(
"type"=>"simple",
"sku"=>$sku,
"name"=>$p_name,
"short_description"=>$shortdesc,
"description"=>$longdesc,
"cost"=>$cost,
"price"=>$price,
"min_qty"=>0,
"qty"=>$stock,
"tax_class_id"=>2,
"status"=>2,
"attribute_set"=>$attribute_set,
"category_ids"=>implode(",",array_unique($cat_list)),
"manufacturer"=>$manufacturer
);
//This doesn't seem to be working.
$item["image"]="http://images.domain.com/product_images".$image[0];
$item["store"]="";
$dp->ingest($item);
$dp->endImportSession();
现在我已经浏览了,但我看不到如何加载插件..有什么修复它的想法吗?总热量