Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Taxes for state show in all


twopooches

Recommended Posts

Hi,

 

Did you follow these directions?

 

In admin, under Locations/Taxes, click on "Tax Zones"

 

Click on the "new zone" button. In the Zone Name: input field I enter "CA"

 

For Description I enter "California". Click on "insert"

 

After you click insert, you will see CA show up in the list. You think you're done, but not quite!

 

Click on the "CA" (or whatever name you have!) in the list and you will see the heading say "Geographical Zones / CA"

 

Here you see a "new zone" button again. Click on it!

 

Now you get to select a geographical zone. From Country, I Select United States

 

From Region, Select California. Click "update"

 

A few more steps to go! Now under "Locations/Taxes" click on "Tax Rates"

 

Click on "new tax rate" button

 

Select "Taxable Goods" from the Tax Class Title drop down menu

 

From the Zone menu, select CA (or whatever zone you created)

 

In the Tax Rate field enter the tax percentage

 

In the Description, enter the description, e.g. "California Sales Tax"

Link to comment
Share on other sites

Okay here's your answer. Someone here helped me once. And i hope this solves your problem.

 

If you think you have folowed all the instruction to set up the tax and it is still displaying taxes on all products no matter what state the customer is coming from then go to your: catalog/catalog/includes/application_top.php

and look for this line:

 

 

define('DISPLAY_PRICE_WITH_TAX', true); // Display prices with tax (true) or without tax (false)

 

where it say true set it to ........... false...............

 

 

Let me know if that did fixed your problem if not i'll see what i can do....

Thanks to my good friend Randy , i am now growing some php brain. :lol:

Link to comment
Share on other sites

  • 1 month later...

...I followed all those directions....twice.

 

Second time, my shipping and payment quit working. Had to reset all the info.

 

And orders going outside my tax zone still show sales tax.

 

I looked through application_top and I do not have that define line.

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...

i think i get the same problem...

 

i noticed that if i'm not loged in it will display the tax (even if i'm outside the tax zone), but when i log back in then it goes away...

 

i'm sure theres an easy fix for this

Designrfix.com | Graphic Design Inspiration & Web Design Resources - @designrfix
Link to comment
Share on other sites

i *think* i fixed it

 

replace the tax function with this:

 

includes/function/general.php

////

// Add tax to a products price

 function tep_add_tax($price, $tax) {

   global $currencies;



   if (DISPLAY_PRICE_WITH_TAX == true) {

     if (!tep_session_is_registered('customer_id')) {

     return $price;

     }else{

     return $price + tep_calculate_tax($price, $tax);

     }

   } else {

     return $price;

   }

 }

 

Basicaly i had to add a check to see if the user was loged on or not, if he was then apply the tax (if he's in the tax zone ofcourse) if not... no tax

 

so far it seems to work... o_O

 

comments?

Designrfix.com | Graphic Design Inspiration & Web Design Resources - @designrfix
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...