Jump to content

I got Tax working! "Hacked the core a little bit"


Guest jeroenz19

Recommended Posts

Guest jeroenz19

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 :).

btw.png

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:

icon11.gif 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 B) : 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:

btw2.png

Link to comment
Share on other sites

Guest jeroenz19

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...