Skip to content

Commit

Permalink
購入フローの中でのお届け先変更はログインユーザーのみメールを飛ばすように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
shinya committed Jun 2, 2023
1 parent 91cfe02 commit 8bf0e4e
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/Eccube/Controller/ShoppingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -697,19 +697,20 @@ public function shippingEdit(Request $request, Shipping $Shipping)

if ($this->isGranted('IS_AUTHENTICATED_FULLY')) {
$this->entityManager->persist($CustomerAddress);
}

// 会員情報変更時にメールを送信
if ($this->baseInfoRepository->get()->isOptionMailNotifier()) {
$Customer = $this->getUser();
// 会員情報変更時にメールを送信
if ($this->baseInfoRepository->get()->isOptionMailNotifier()) {
$Customer = $this->getUser();

// 情報のセット
$userData['userAgent'] = $request->headers->get('User-Agent');
$userData['ipAddress'] = $request->getClientIp();
// 情報のセット
$userData['userAgent'] = $request->headers->get('User-Agent');
$userData['ipAddress'] = $request->getClientIp();

$this->mailService->sendCustomerChangeNotifyMail($Customer, $userData, trans('front.mypage.delivery.notify_title'));
$this->mailService->sendCustomerChangeNotifyMail($Customer, $userData, trans('front.mypage.delivery.notify_title'));
}
}


// 合計金額の再計算
$response = $this->executePurchaseFlow($Order);
$this->entityManager->flush();
Expand Down

0 comments on commit 8bf0e4e

Please sign in to comment.