From 6d15ac8c43e93140bf859018d030a61383e8ca3a Mon Sep 17 00:00:00 2001 From: Norris Oduro Date: Tue, 3 Nov 2020 13:25:43 +0000 Subject: [PATCH] Update Cart.php Add instance to storedCartWithIdentifierExists --- src/Cart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cart.php b/src/Cart.php index 369bb2e..60937f4 100644 --- a/src/Cart.php +++ b/src/Cart.php @@ -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(); } /**