Hi,
I am using v3.0.3.6 in my store ..
I want to show sum of all tax classes on cart page and checkout . Please help.
kind regards.
I am using v3.0.3.6 in my store ..
I want to show sum of all tax classes on cart page and checkout . Please help.
kind regards.
What exactly do you mean? Give us some examples?nureddin21 wrote: ↑Tue Mar 16, 2021 8:30 pmI want to show sum of all tax classes on cart page and checkout . Please help.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Guru Member
I've discussed this with nureddin21 via e-mail, so maybe I can explain in more detail. When different tax rates are present (even within 1 tax class), each one shows up as a line item on the order. nureddin wants a line item that sums together all taxes, rather than splits them up. For example, if the order is like this:
Sub-Total: $50.00
Shipping: $10.00
Product Tax (10%): $5.00
Shipping Tax (20%): $2.00
Total: $67.00
then he wants it to show up like this:
Sub-Total: $50.00
Shipping: $10.00
Taxes: $7.00
Total: $67.00
I told him to post in the forums asking about an extension, to see if one like this exists. If not, he knows he can post in the Commercial Support forum to hire someone to do this.
Sub-Total: $50.00
Shipping: $10.00
Product Tax (10%): $5.00
Shipping Tax (20%): $2.00
Total: $67.00
then he wants it to show up like this:
Sub-Total: $50.00
Shipping: $10.00
Taxes: $7.00
Total: $67.00
I told him to post in the forums asking about an extension, to see if one like this exists. If not, he knows he can post in the Commercial Support forum to hire someone to do this.
Thank you very much for this clarification, Mr. Johnathan,
But as you mentioned, in addition to:
Sub-Total: $ 50.00
Shipping: $ 10.00
Product Tax (10%): $ 5.00
Shipping Tax (20%): $ 2.00
Total: $ 67.00
I want it like this:
Sub-Total: $ 50.00
Shipping: $ 10.00
Product Tax (10%): $ 5.00
Shipping Tax (20%): $ 2.00
Total taxes: $ 7.00 <<<<<
Total: $ 67.00
In Sweden, it is necessary to show the different tax rates ... and also their total ...
I only need help showing the total.
But as you mentioned, in addition to:
Sub-Total: $ 50.00
Shipping: $ 10.00
Product Tax (10%): $ 5.00
Shipping Tax (20%): $ 2.00
Total: $ 67.00
I want it like this:
Sub-Total: $ 50.00
Shipping: $ 10.00
Product Tax (10%): $ 5.00
Shipping Tax (20%): $ 2.00
Total taxes: $ 7.00 <<<<<
Total: $ 67.00
In Sweden, it is necessary to show the different tax rates ... and also their total ...
I only need help showing the total.
Attachments
tax.png (23.15 KiB) Viewed 729 times
In this scenario, the problem by doing this is the shipping taxes being collected with its associative tax class ID. Which means, by also calculating the product taxes, the same tax class ID could be conflicted with the previous associated tax class ID in order to pull the tax rate of the shipping cost in the order total extension module you'd be expecting to have.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I think it can be done on the other hand ..
Instead of adding the total of the different tax rates, let us subtract the final two numbers.
As is evident in the attached picture, the total invoice appears, including tax, and another number is also shown, which is the total invoice, not including tax.
So why don't we do the process of subtracting the two numbers and getting the required sum?
who is agree with me ..
Can anyone help me? Where do I adjust the code exactly?
Instead of adding the total of the different tax rates, let us subtract the final two numbers.
As is evident in the attached picture, the total invoice appears, including tax, and another number is also shown, which is the total invoice, not including tax.
So why don't we do the process of subtracting the two numbers and getting the required sum?
who is agree with me ..
Can anyone help me? Where do I adjust the code exactly?
Attachments
tax2.png (28.22 KiB) Viewed 694 times
I just updated Intermediate Order Total so that you can pick which line items it factors into its calculation, so it should work for your purpose now. If you only choose "Taxes" in the extension, then it will add up any line items that have that internal "tax" code. That means it should work like you want:
Sub-Total: $50.00
Shipping: $10.00
Product Tax (10%): $5.00
Shipping Tax (20%): $2.00
Intermediate Order Total: $7.00
Total: $67.00
You can change the title in the extension as well, so you can make the text say "Total Tax" or something similar.
Feel free to take a look at the screenshots and demo site, and if you're interested let me know at www.getclearthinking.com/contact if you have any further questions.
Sub-Total: $50.00
Shipping: $10.00
Product Tax (10%): $5.00
Shipping Tax (20%): $2.00
Intermediate Order Total: $7.00
Total: $67.00
You can change the title in the extension as well, so you can make the text say "Total Tax" or something similar.
Feel free to take a look at the screenshots and demo site, and if you're interested let me know at www.getclearthinking.com/contact if you have any further questions.
This is very beautiful ..Johnathan wrote: ↑Thu Apr 15, 2021 1:10 amI just updated Intermediate Order Total so that you can pick which line items it factors into its calculation, so it should work for your purpose now. If you only choose "Taxes" in the extension, then it will add up any line items that have that internal "tax" code. That means it should work like you want:
Sub-Total: $50.00
Shipping: $10.00
Product Tax (10%): $5.00
Shipping Tax (20%): $2.00
Intermediate Order Total: $7.00
Total: $67.00
You can change the title in the extension as well, so you can make the text say "Total Tax" or something similar.
Feel free to take a look at the screenshots and demo site, and if you're interested let me know at www.getclearthinking.com/contact if you have any further questions.
Thank you Johnathan.
Who is online
Users browsing this forum: No registered users and 517 guests