-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
Execute the total model 'shipping' after 'tax_subtotal' #1104
Execute the total model 'shipping' after 'tax_subtotal' #1104
Conversation
…ive sipping rate calculation the opportunity to rely on a valid subtotal
By using any of the lines bellow in /app/code/core/Mage/Tax/etc/config.xml at line 165 solves the issue reported here #1813.
or
The variant below is now in all Magento LTS/OpenMage versions but the "Free Shipping" feature no longer works. Before merging this PR I would be interested to know what are the differences and real advantages in using the original Magento version or the proposed one.
|
This is a very delicate change, it would require extensive tests that are impossible to me to conduct. |
This PR doesn't have updates in 3 years, it's an extremely delicate topic, the original issue is closed as fixed... sorry but I'll close this PR too. |
can we reopen this ... This PR fixes this situation for me. When i configure a minimum cart total before "freeShipping" is available, in file the "$request->getBaseSubtotalInclTax()" returns 0. after this pull request, it returns the correct cart amount. |
github doesn't let me reopen it for some reason so it will have to be re-created |
I am still using this change because of this issue #1813. |
This pull request solves the problem I've mentioned earlier in #80 :
Description (*)
This is a major change which is causing troubles for the calculation of shipping rate! Is "shipping" really needed as prerequisite for subtotal?
A: shipping is not included within subtotal
B: some shipping methods calculate there rate based on subtotal
This change led to strange behavior: once the totals are already calculated and stored/cached then the subtotal doesn't include tax anymore (as expected) BUT when totals will be collected first time the "shipping" total is executed before "tax_subtotal", so the subtotal still contains tax, which leads to inconsistency...
Fixed Issues (if relevant)
Manual testing scenarios (*)
This issue applies only to external shipping modules like matrixrates from webshopapps (I haven't tested it but it might apply to tablerates from Magento core, too)
This different behavior depends on whether totals are already calculated and cached (then subtotal does not contain tax anymore because subtotal_tax is already collected) or not (then the total model "shipping" is executed before "subtotal_tax")!
Contribution checklist (*)