Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion magmi/engines/magmi_productimportengine.php
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ public function engineRun($params, $forcebuiltin = array())
{
$this->log("No Records returned by datasource", "warning");
}
$this->callPlugins("datasources,general,itemprocessors", "afterImport");
//$this->callPlugins("datasources,general,itemprocessors", "afterImport");
$this->log("Import Ended", "end");
Magmi_StateManager::setState("idle");

Expand Down
14 changes: 14 additions & 0 deletions magmi/plugins/inc/magmi_defaultattributehandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,20 @@ public function handleTextAttribute($pid, &$item, $storeid, $attrcode, $attrdesc
return $dval;
}
$ovalue = deleteifempty($ivalue);
$attid = $attrdesc["attribute_id"];
// --- ExtensionsMall multiselect 1.9.3 varchar -> text ----
if ($attrdesc["frontend_input"] == "multiselect") {
// if empty delete entry
if ($ivalue == "") {
return "__MAGMI_DELETE__";
}
// magento uses "," as separator for different multiselect values
$sep = Magmi_Config::getInstance()->get("GLOBAL", "multiselect_sep", ",");
$multiselectvalues = explode($sep, $ivalue);
$oids = $this->getOptionIds($attid, $storeid, $multiselectvalues);
$ovalue = implode(",", array_values($oids));
unset($oids);
}
return $ovalue;
}

Expand Down