-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
multiple_coupons issue #318
Comments
It works if I update this function in LaraCart :
|
can you create a test , and ill look at it here soon |
Sorry I'm not able to figure out how this could be done, but I can send PR.
Is this correct ? I think the correct totals should be like this : Am I correct ? thanks |
im guessing your using the wrong totals to get what your asking for , there are a lot of different totals , also taxes are complicated and theres alot of configurations for it. Pre taxed coupons vs non pretaxed etc. ill make it a test and verify what your saying |
Thanks for quick reply, |
yah sure that would be helpful! |
sorry i didnt read all of that, i cant meet right now, but ill make a test and post it here ~ |
ok i found the issue, multiple coupons arent working as intended , as you pointed above your fix works |
related #314 |
ive added the test and verified the fix works, i changed the code slightly from what you had |
Thanks,
|
i have an issue with taxes , im still working on it , not sure how long it will take |
my current version of the main branch has broken tests so its making this kinda difficult |
|
Try to fix this too, |
This : |
tax can happen per item, if thats the case each qty really means a unique item |
Why you don't add tax to sum(item->qty) instead of tax on each qty = 1 ? |
if you allow taxation on discounts you have to be careful as tax on qty5 1= tax on qty 1 + qty 2 + .. |
also taxation on fees runs into this same issue~ |
yah the changes you made probably work, but i hvae to fix my tests to make sure i dont break anything else . This package is also VERY old , im 100% sure i could have written it better 😆 |
Could you please tell if it's correct ? I'm applying tax on cart totals |
if your in the U.S it will depend on your state , id look up your guidelines for how taxation works etc. (taxation sucks and its more complicated than id liek) |
I see it's a headache :/ |
no worries, ill see if i can get to fixing the tests tonight, I ran out of time and have todo the real work that pays the $$$ |
Hello,
Thanks for this awesome package,
I'm trying to add multi coupons with different types (fixed, percentage),
I'm able to add them to the cart and display them,
The problem is : The cart totals are incorrect, it only takes the last coupon discount in consideration.
Example:
Cart Total : 200
Coupon 1 : Fixed, 50
Coupon 2 : Fixed, 30
The final total : 170, but it should be 200 - 50- 30 = 120
Also if we apply tax, it give wrong totals :/
Thanks
The text was updated successfully, but these errors were encountered: