質問 > 管理機能 > クーポンプラグインで、ユーザー1人当たりの回数制限設定方法 |
管理機能
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
be-s |
投稿日時: 2020/9/16 14:42
対応状況: 解決済
|
一人前 登録日: 2016/2/2 居住地: São Paulo 投稿: 115 |
Re: クーポンプラグインで、ユーザー1人当たりの回数制限設定方法 返信遅くなってすいません。
このようにカスタマイズしました。 ひとまず思っていたようにうごきそうです。 ありがとうございました。 public function checkCouponUsedOrNot($couponCd, Customer $Customer) { $repository = $this->couponOrderRepository; if ($this->authorizationChecker->isGranted('ROLE_USER')) { $result = $repository->findUseCoupon($couponCd, $Customer->getId()); } else { $result = $repository->findUseCoupon($couponCd, $Customer->getEmail()); } $resultCnt = count($result); return $resultCnt; } |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
クーポンプラグインで、ユーザー1人当たりの回数制限設定方法 | be-s | 2020/2/14 14:29 |
Re: クーポンプラグインで、ユーザー1人当たりの回数制限設定方法 | umebius | 2020/2/15 15:49 |
Re: クーポンプラグインで、ユーザー1人当たりの回数制限設定方法 | be-s | 2020/2/19 15:00 |
Re: クーポンプラグインで、ユーザー1人当たりの回数制限設定方法 | umebius | 2020/2/21 10:15 |
» Re: クーポンプラグインで、ユーザー1人当たりの回数制限設定方法 | be-s | 2020/9/16 14:42 |
Re: クーポンプラグインで、ユーザー1人当たりの回数制限設定方法 | erukun | 2022/9/29 20:33 |