diff --git a/Helper/Data.php b/Helper/Data.php index 0e9f68b9..2408d5f3 100755 --- a/Helper/Data.php +++ b/Helper/Data.php @@ -1087,6 +1087,10 @@ public function loadListCustomers($listId, $email) public function getTableName($tableName, $conn = ResourceConnection::DEFAULT_CONNECTION) { $connection = $this->_resource->getConnection($conn); + $tablePrefix = $this->_resource->getTablePrefix(); + if ($tablePrefix && strpos($tableName, $tablePrefix) !== 0) { + $tableName = $tablePrefix . $tableName; + } return $connection->getTableName($tableName, $conn); } public function getWebsiteId($storeId)