From 929d89893aea36c64ff7d9754fe823ba9bccc68e Mon Sep 17 00:00:00 2001 From: Maxime Flasquin Date: Wed, 25 Mar 2020 14:08:13 +0100 Subject: [PATCH] Fix tier price import issue #20 (#77) Co-authored-by: Maxime Flasquin --- .../extra/itemprocessors/tierprice/tierpriceprocessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magmi/plugins/extra/itemprocessors/tierprice/tierpriceprocessor.php b/magmi/plugins/extra/itemprocessors/tierprice/tierpriceprocessor.php index c25358d8..3af26695 100644 --- a/magmi/plugins/extra/itemprocessors/tierprice/tierpriceprocessor.php +++ b/magmi/plugins/extra/itemprocessors/tierprice/tierpriceprocessor.php @@ -165,7 +165,7 @@ public function processColumnList(&$cols, $params = null) public function initialize($params) { - $sql = "SELECT COUNT(store_id) as cnt FROM " . $this->tablename("core_store") . " WHERE store_id!=0"; + $sql = "SELECT COUNT(store_id) as cnt FROM " . $this->tablename("store") . " WHERE store_id!=0"; $ns = $this->selectOne($sql, array(), "cnt"); if ($ns == 1) { $this->_singlestore = 1;