Guest jeroenz19 Posted September 27, 2005 Share Posted September 27, 2005 Hi folks... i couldn't get the tax workin properly, so I looked in the code and removed & edited it a little bit. Now it shows the proper tax . I went out from the fact that my customers only come from 1 country & only need to pay 19%tax. The prices need to be excluding tax! Goto the admin screen & then to general settings: Change Tax included in prices to OFF Open: /includes/content/cart.inc.php Find on line 282 this piece of code: I've got another tiny hack which followsup this hack. My client wanted the prices to be including tax on the site. And in the shopping cart only display tax, not that it is added to the grand total. So subtotal + shippingcosts only So i edited again : Open: /includes/content/cart.inc.php Find on line 564 this piece of code: $tax = 0; $taxCustomer = 0; Replace it with this piece of code: $tax = 0; $taxCustomer = 1; In the same file, find on line 558 this piece of code: if($tax>0){ Â Â $view_cart->assign("VAL_TAX",priceFormat($tax)); } else { Â Â $view_cart->assign("VAL_TAX",$lang['front']['cart']['na']); } And replace it with this piece of code: $view_cart->assign("VAL_TAX",priceFormat($tax)); This should work for everyone. If not, place you're questions in this topic. $grandTotal = $subTotal + $tax + $basket['shipCost']; Replace it with this code: $grandTotal = $subTotal + $basket['shipCost']; Check this image: Quote Link to comment Share on other sites More sharing options...
Guest vrakas Posted September 27, 2005 Share Posted September 27, 2005 Excelent Job B) Quote Link to comment Share on other sites More sharing options...
Guest jeroenz19 Posted September 27, 2005 Share Posted September 27, 2005 I've got another small questions. I want the boxes which you see on the index.php also shown in the cart.php . I already got the categories working, but I can't get the boxes to work correctly. Have you got any clue how to do that? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.