Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Tax Class- taxable goods selected by default


aozlanski

Recommended Posts

Hello everyone!

 

I did search and couldn't find any answer to this.

 

In my shop all products are taxable (if purchaser is from Illinois, where my shop is located). When adding new product there is a dropdown menu by Tax Class: and the default option is --none-- . Is there a way to change this so the selected option is Taxable Goods?

It?s an extra step when entering product, and sometimes I forget to switch it and customers from my state don?t get taxed.

 

Any help is greatly appreciated

 

Andrew

Link to comment
Share on other sites

I changed this myself on the store I'm working on. Couldn't remeber exactly if this was all.

 

There's a code in admin/categories.php that look s like this (this is my changed code so you'll have to search yourself):

 

$tax_class_array = array(array('id' => '1', 'text' => 'Hoog'));
? ?$tax_class_query = tep_db_query("select tax_class_id, tax_class_title from " . TABLE_TAX_CLASS . " order by tax_class_title");
? ?while ($tax_class = tep_db_fetch_array($tax_class_query)) {
? ? ?$tax_class_array[] = array('id' => $tax_class['tax_class_id'],
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 'text' => $tax_class['tax_class_title']);
? ?}

 

$tax_class_array = array(array('id' => '1'

change the 1 to the tax id of the tax that you use for your shop.

 

If you don't know the id look in your DB in the tax_rates table

 

(this doesn't change the name of the selection, only the value)

Forum search

Contributions search

Documentation search (note: docs being adapted for MS3, may be different for MS2)

3 tips for better forum searching

 

Want to post? Read this first:

osCommerce for dummies

Topic name etiquette

 

Basics:

Basics for design

Right syntax to use near '-20, 20'

Cannot re-assign $this

Parse error

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...