Magento

eCommerce Software for Online Growth

Magento Forum

From setting up your store to managing your products, pages and promotions to generating detailed reports, the Magento User Guide empowers the user to utilize the platform for all of its vast capacity.
Available in eBook and Print formats – Download Now!!!
   
add Tax to subtotal within the “shopping-cart-totals-table” box. 
 
botc
Member
 
Total Posts:  41
Joined:  2009-05-16
 

Hi Magneto’s

I noticed that my subtotal in the shopping cart was displayed without tax, and then the tax was showed one line below. But I would like the subtotal to be with tax, and the the row with tax should be “the amount of tax included in subtotal”.

So basicly how do I add tax to the subtotal on the shopping cart page?

- on other page the subtotal includes tax, so it only this one place it doesn’t.

Thanks for help!

ps. I tried all the tax options in the configuration, but it doesn’t fix it.

 
Magento Community Magento Community
Magento Community
Magento Community
 
umang
Member
 
Total Posts:  38
Joined:  2009-07-07
 

Hi botc, did you ever figure this out?

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
botc
Member
 
Total Posts:  41
Joined:  2009-05-16
 

No, I added the text “without VAT” to my subtotal, but this makes some problemes other places. Invoice pdf needs to be ajusted and the print-order page the customer can print out after payment will be incorrect. (that subtotal is incl. VAT).

Not pretty, but looks better for the customer before they buy.

 
Magento Community Magento Community
Magento Community
Magento Community
 
I'm an idiot
Member
 
Avatar
Total Posts:  35
Joined:  2009-06-22
 

gggrrr.. I don’t think it unreasonable to want to show tax/vat included in the subtotal price, and also to the shipping price when someone presses the ‘update total’ button. Now I’m going to go find a dark room and cry!!

UPDATE:

Well after a lot of head scratching I’ve come up with a workaround that works for me.. no doubt there is a much easier way (as there always tends to be) but here’s what I did…

I had to override core functions in both:

1. \app\code\core\Mage\Sales\Model\Quote\Address\Total\Subtotal.php
2. \app\code\core\Mage\Sales\Model\Quote\Address\Total\Shipping.php

both those files have a function called ‘fetch’ (its the last one at the bottom), I added a bit of code that called the value of vat/tax, then just added it to the value it was outputting.

Seriously annoyed thought that either I’m too stupid to not see a simpler solution or that it is in fact not simple and Megento is just designed to mess with your head! smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
I'm an idiot
Member
 
Avatar
Total Posts:  35
Joined:  2009-06-22
 

oh and to actually remove the line that shows the tax amount I just deleted the contents of..

\app\design\frontend\****\****\template\checkout\total\tax.phtml

seems to work ok!

 
Magento Community Magento Community
Magento Community
Magento Community
 
fragilem17
Member
 
Total Posts:  56
Joined:  2009-02-15
 

did anyone find a simpler sollution to this, i really dont want to mess with the core file.
also the totals should look the same in the mail that is send out.

 
Magento Community Magento Community
Magento Community
Magento Community
 
I'm an idiot
Member
 
Avatar
Total Posts:  35
Joined:  2009-06-22
 

I’m not messing with core files, I’m simply overriding them via a module. But your right, I’ve not figured out how to make the changes visible in the order confirmation email. Showing tax shouldn’t be this hard!!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
rokonboss
Member
 
Avatar
Total Posts:  38
Joined:  2008-11-19
 

Please anyone help me.

Subtotal ------------------------- $30.00
Shipping & Handling ----------- $20.00
Tax ---------------------------------- $0.00

Tax not added in cart page or final checkout. How do i add tax?

 Signature 

Thanks
RoKoN

My Website

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
© Copyright 2010 Magento Inc.
Privacy Policy|Terms of Service
Magento Community Count
277237 users|1068 users currently online|346992 forum posts