This commit is contained in:
Frank John Begornia
2023-09-24 16:17:22 +08:00
parent 33b7ab7b7f
commit 1186d090bb
2 changed files with 13 additions and 1 deletions

View File

@@ -305,7 +305,7 @@ class UserModel extends Model
function selectTeamStoreName($ck)
{
$pdo = DB::connection()->getPdo();
$query = $pdo->prepare("SELECT t.Id, t.StoreName FROM orders AS o INNER JOIN teamstores AS t ON t.Id = o.StoreId WHERE o.CartKey = :ck GROUP BY o.StoreId ORDER BY t.StoreName ASC");
$query = $pdo->prepare("SELECT t.Id, t.StoreName, t.NoShippingFee FROM orders AS o INNER JOIN teamstores AS t ON t.Id = o.StoreId WHERE o.CartKey = :ck GROUP BY o.StoreId ORDER BY t.StoreName ASC");
$query->execute(array(':ck' => $ck));
$row = $query->fetchAll(\PDO::FETCH_OBJ);
return $row;