From 29fea568901a5b6c09de78823da83a4b8947c837 Mon Sep 17 00:00:00 2001 From: Peeter Rannou Date: Tue, 17 Oct 2017 16:39:01 +0200 Subject: [PATCH 1/2] Fix value translation for select/multiselect attributes. --- magmi/engines/magmi_productimportengine.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/magmi/engines/magmi_productimportengine.php b/magmi/engines/magmi_productimportengine.php index cf0070aa..93eaaf65 100755 --- a/magmi/engines/magmi_productimportengine.php +++ b/magmi/engines/magmi_productimportengine.php @@ -1619,10 +1619,10 @@ public function createAttributes($pid, &$item, $attmap, $isnew, $itemids) // get the item value $ivalue = $item[$attrcode]; // get item store id for the current attribute - //if is global then , global scope applies but if configurable, back to store view scope since - //it's a select + // if the attribute is global, then global scope applies. However, for select & multiselect + // attributes, we go back to the store view scope to allow for values translation $scope = $attrdesc["is_global"]; - if ($attrcode != "price" && $attrdesc["is_configurable"] == 1) + if ($attrcode != "price" && $attrdesc["is_global"] && ($attrdesc["frontend_input"] == 'select' || $attrdesc["frontend_input"] == 'multiselect')) { $scope = 0; } From fac3003c87bcc232826fbd86563bb5a2312db2e9 Mon Sep 17 00:00:00 2001 From: Peeter Rannou Date: Fri, 26 Jan 2018 11:59:09 +0100 Subject: [PATCH 2/2] =?UTF-8?q?Allow=20for=200=E2=82=AC=20price=20to=20be?= =?UTF-8?q?=20imported.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../extra/itemprocessors/groupprice/grouppriceprocessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magmi/plugins/extra/itemprocessors/groupprice/grouppriceprocessor.php b/magmi/plugins/extra/itemprocessors/groupprice/grouppriceprocessor.php index aea97f09..3241bd32 100755 --- a/magmi/plugins/extra/itemprocessors/groupprice/grouppriceprocessor.php +++ b/magmi/plugins/extra/itemprocessors/groupprice/grouppriceprocessor.php @@ -57,7 +57,7 @@ public function processItemAfterId(&$item, $params = null) $inserts=array(); foreach ($group_cols as $key) { $price=str_replace(",", ".", $item[$key]); - if (!empty($price)) { + if (is_numeric($price)) { $group_id = $this->_groups[$key]['id']; foreach ($website_ids as $website_id) {