Jump to content

Recalculate TAX


Guest

Recommended Posts

Hi

In my store all prices are included 25% tax. In the tax line I want the total tax diplayed.

Example

Amount: 100 Euro

Tax Included: 25 Euro

Shipping: 10 Euro

Total: 110 Euro

This is the normal tax sett up for all scandinavian countries.

I know there was a fix for it in CC2

Can anyone help me set up the tax calculation like this?

Regards

Nils

Link to comment
Share on other sites

  • 3 months later...

Can you explain wot it does now and looks like and wot u want it to do and look like so I can get it done for you asap pls

It look like now:

Example:

Amount: 75 Euro

Tax Included: 25 Euro

Shipping: 10 Euro

Total: 110 Euro

I want to do like this look like:

Example:

Amount: 100 Euro

Tax Included: 25 Euro

Shipping: 10 Euro

Total: 110 Euro

(And tax still include per product too)

Now i can't use tax at all, it would be nice if someone tell me how it can chance like last examle

Link to comment
Share on other sites

Have fixed this one ;)

Open cart.inc.php ( CubeCart_3.0.7-pl1 )

Find line 531

if($config['priceIncTax']==0 && $taxCustomer==1){

Add after this:

if($taxCustomer==1){

Find line 620

if($tax>0){

Add after this:

$tax += $sum*0.2;

Find line

$grandTotal = $subTotal + $tax + $basket['shipCost'];

Replace with

$grandTotal = $subTotal + $basket['shipCost'];

And save the file.

In the admin panel set the tax ink tax.

And in the admin panel under Tax settings set the Standard Tax to 20.000

Finished =)

God luck all =)

Link to comment
Share on other sites

Guest Stunter

Have fixed this one :D

Open cart.inc.php ( CubeCart_3.0.7-pl1 )

Find line 531

if($config['priceIncTax']==0 && $taxCustomer==1){

Add after this:

if($taxCustomer==1){

Find line 620

if($tax>0){

Add after this:

$tax += $sum*0.2;

Find line

$grandTotal = $subTotal + $tax + $basket['shipCost'];

Replace with

$grandTotal = $subTotal + $basket['shipCost'];

And save the file.

In the admin panel set the tax ink tax.

And in the admin panel under Tax settings set the Standard Tax to 20.000

Finished =)

God luck all =)

It won't work. And have the same version 3.0.7-pl1. Getting the error:

Parse error: parse error, unexpected T_ELSE in /home/wifistunt/domains/wifistunter.nl/public_html/includes/content/cart.inc.php on line 660

This comes up when I click on view cart!!!

Please help me :P

Link to comment
Share on other sites

Search for my username and you will find a solution - BUT plz note that my solution is not perfect, but it works well if you only trade in your own country.

Link to comment
Share on other sites

  • 2 weeks later...
Guest timecrisis

OK,

Actually I have decided to go with a simpler way of doing things.

I am going to use the cart as it is set up and include TAX in my prices.

What I want to do is add a piece of text saying "Total Tax charged = $xx"

This would be a calculation based apon the TAX percentage of Grand Total+ Shipping.

Apologies for the confusing posts..My head hurts.

Basically it is legal requirment in the UK for merchants to show a list of the VAT/TAX charged.

If anyone could suggest code for adding such a piece of text to the checkout and also for the admin pages, That would be great.

Link to comment
Share on other sites

  • 2 months later...
Guest sundayman

the cart.inc.php file earlier in this post made some strange calculations....i looked it thru and saw that the tax written in the file was set to 20%. Here in Sweden we have 25%. I think i did manage to change it and it is working super on my site!

I get

products incl tax

shipping incl tax

total tax

Grand total

on my invoice receipt.

Great stuff!

Link to comment
Share on other sites

Hi, help.

I tried the Gizze's mod and the tax doesnot show. i uploaded the attached file, tax still not show. i tried to do the mod, it come back with error "Parse error: syntax error, unexpected T_ELSE".

then i seached and found you other post and it doesn't work neither. i had spent at least 3 days tried to fix this problem.

Can somebody please upload a working file please?

this is how i want it to show:

Total:

total tax

shipping:

Grand total

Link to comment
Share on other sites

  • 1 month later...
Guest TangoXray

Hi agen!

Post the cart.inc file so you can se this one.

This is for scandinavien users.

Can anyone tell me what is changed in this file? I use other mods as well, and can´t just upload the file, it will ruin the other mods...

Thanks in advance.

/Stefan

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