Closed ash4sv closed 1 week ago
I will look into this.
I tested it with percentage-based discounts, and everything seems to be working fine on my end. It might be worth checking your code implementation to ensure the discount is applied correctly. If the issue persists, it could be helpful to share more details
Hello @ash4sv,
I've checked, and everything is working perfectly as expected. If possible, could you please share the code? I'd love to take a look and learn more from it.
Thank you! 😊
Closing this issue due to inactivity.
What happened?
When applying a percentage-based discount using the RealRashid Cart package, the Cart::total() method incorrectly returns 0.00 instead of the expected discounted total. This issue does not occur with fixed amount discounts, which suggests a bug in how the package handles percentage discounts.fixed-amount
How to reproduce the bug
Steps to Reproduce:
Setup:
Create a Percentage Coupon:
Apply the Coupon:
Check the Total:
Package Version
1.0
PHP Version
PHP 8.3.10
Laravel Version
10.48
Which operating systems does with happen with?
macOS
Notes
No response