Update Cart.php

Add instance to storedCartWithIdentifierExists
This commit is contained in:
Norris Oduro
2020-11-03 13:25:43 +00:00
committed by GitHub
parent 2fc604ed40
commit 6d15ac8c43

View File

@@ -831,7 +831,7 @@ class Cart
*/
private function storedCartWithIdentifierExists($identifier)
{
return $this->getConnection()->table($this->getTableName())->where('identifier', $identifier)->exists();
return $this->getConnection()->table($this->getTableName())->where('identifier', $identifier)->where('instance', $this->currentInstance())->exists();
}
/**