Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Discount coupons with more than 100% discount of entire order value #88

Open
wojtek777 opened this issue Jan 25, 2024 · 0 comments

Comments

@wojtek777
Copy link

Describe the bug
When adding coupons in admin panel, it is possible to insert and enable the coupon that has more than 100% discount of whole order value, resulting in shop 'paying the customer for their purchase'.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'admin' panel
  2. Click on 'coupons' under 'promotion'
  3. Click on the green 'New coupon' button
  4. In the window that appears, insert more than 100 units value in the 'Discount amount' box
  5. In the 'Discount Type' selective menu, select 'percentage discount to entire order'
  6. Coupon is added and active to use

Expected behavior
When selecting 'percentage discount to entire order', a limit on the page should be set to deny adding coupons with more
then 100% discount percentage rate

Screenshots
higher1
higher2

Background (please complete the following information):

  • NodeJS 20.10.0
  • Postgres 13.12
  • ShopMost 1.0.1
  • OS: Fedora
  • Browser: Mozilla Firefox
@wojtek777 wojtek777 changed the title [BUG] [BUG] Discount coupons with more than 100% discount of entire order value Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant