diff --git a/magmi/plugins/base/itemprocessors/configurables/magmi_configurableprocessor.php b/magmi/plugins/base/itemprocessors/configurables/magmi_configurableprocessor.php index eaaad0ee..4af9092d 100644 --- a/magmi/plugins/base/itemprocessors/configurables/magmi_configurableprocessor.php +++ b/magmi/plugins/base/itemprocessors/configurables/magmi_configurableprocessor.php @@ -221,6 +221,10 @@ public function processItemAfterId(&$item, $params = null) $psaid = $this->insert($sql, array($pid, $attrid, $idx)); } + // Allow position update to update attribute ordering + $sql = "UPDATE `$cpsa` SET position=? WHERE product_super_attribute_id=?"; + $this->update($sql, array($idx, $psaid)); + // for all stores defined for the item $sids = $this->getItemStoreIds($item, 0); $data = array();