-
-
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
Discount problems #209
Comments
In the confit you have an option to apply taxes before or after totals , look up based on your country which you should use |
Oh nvm that's. bug |
Also it seems that should the second parameter be |
Probably, looking into this now, writing some tests |
What version are you on? Im getting correct results |
Version: Laravel 5.5.14 + Laracart 1.3.8 |
This is very weird... this is my config
|
/* |
Those are correct because your taxing by item |
If you wish to calculate the tax by subtotal set to false to get what you expect |
mmm ok, now it seems to work... But is this a bug or not? I like calculating tax per item. |
Its not, cause its calculating correctly , you have to calculate the taxes differently if your doing it by item. Ill verify that in a sec |
Ok so , i've think I had a bug for a while now Im not sure if this will fix your issue or not , i have to run now but if you want take a look at that PR and see if that fixes your issues. I had the discount flag opposite of what it should have been. Kinda surprised it even worked before |
Ok will check when I have a bit more time... Thanks |
It did not, working on fixing it still |
I believe its fixed! I did your test in the code too (https://github.com/lukepolo/laracart/blob/master/tests/TotalsTest.php#L246) please validate that for me! I have made a RC for 1.4.1 : https://github.com/lukepolo/laracart/releases/tag/1.4.1-rc Once you test ill release it as 1.4.1 |
@lukepolo thanks for the fix... |
Version: Laravel 5.5.14 + Laracart 1.3.8
Hi,
I have an issue with coupons (both fixed and percentage). I have this:
PERCENTAGE Coupon
FIXED Coupon
The text was updated successfully, but these errors were encountered: