Skip to content

Commit

Permalink
Merge pull request #4936 from izayoi256/bugfix/reverse-cart
Browse files Browse the repository at this point in the history
カートの順番が逆転する問題を修正
  • Loading branch information
okazy authored Mar 2, 2021
2 parents d836f7b + 4169ba8 commit 76e63a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Eccube/Service/CartService.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function getSessionCarts()
return [];
}

return $this->cartRepository->findBy(['cart_key' => $cartKeys], ['id' => 'DESC']);
return $this->cartRepository->findBy(['cart_key' => $cartKeys], ['id' => 'ASC']);
}

/**
Expand Down Expand Up @@ -459,7 +459,7 @@ public function clear()
$this->session->set('cart_keys', $cartKeys);
// 注文完了のカートキーをセッションから削除する
$this->session->remove('cart_key');
$this->carts = $this->cartRepository->findBy(['cart_key' => $cartKeys], ['id' => 'DESC']);
$this->carts = $this->cartRepository->findBy(['cart_key' => $cartKeys], ['id' => 'ASC']);
}
}

Expand Down

0 comments on commit 76e63a7

Please sign in to comment.