EC-CUBE / EC-CUBE/coupon-plugin
購入金額より割引金額が高い場合にエラーが発生する
- Dominant language
- PHP
- Stars
- 10
- Forks
- 39
- PR merge metrics
- No merged PRs in 30d
Description
開発コミュニティへの投稿から
https://xoops.ec-cube.net/modules/newbb/viewtopic.php?topic_id=23447&forum=1&post_id=96512#forumpost96512
1. クーポンプラグインにて、購入金額より高い金額を設定する
2. フロントにて、商品を購入する、この際、上記で設定したクーポンを使用
(購入金額合計よりクーポンの設定金額が大きいこと)
3. 購入手続きを行うと、システムエラーとなる
原因としては、金額用のカラムが、decimal unsigned の為
マイナス値を渡されることで、エラーとなる。
クーポンの適用を行うことで、マイナス値となる場合は
0にする処理が必要と考えます。
プラグインの修正リリースを希望いたします。
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the coupon application path during frontend checkout, using the reproduction steps in this issue. Verify how the discount affects the purchase total when the coupon exceeds it. Done means the applied amount is not negative and checkout completes without a system error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100