Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted (edited)

Sometime back when I first started setting up OSC v4 I discovered that ALL of the products were displaying (in the front end) the prices including sales tax.  As a very uninitiated beginner with the software I discovered that the way to eliminate the prices from doing this was to ensure that they didn't indicate a tax class.  While this solved the immediate problem (at the time) it has now become BIG headache since all the products now have a tax class of - - none - -.

ProductTaxClasses.thumb.png.6d18263cf053424b2b59ab1a4e4b9c11.png

So now that I have the Tax zones, class, and rates in place - IS there a simple SQL command that be issued to change ALL of the 5000+ products products to the Taxable Goods label in one command? OR must it be done individually?

BJ

Edited by Chadduck
Posted (edited)

RESOLVED

After tinkering around within phpMyAdmin and the Products table I was able to construct an SQL query that worked for my Sales tax.  The command I used was

UPDATE `products` SET `products_tax_class_id` = '6' WHERE `products_tax_class_id` <> 6;

Bear in mind that YOUR tax tables may, and probably will, use a different `products_tax_class_id` value.  You'll likely need to pick a product within YOUR store assign it the correct Tax Class.  Then check what the value is in the products table of your database for the product that you changed.  Then change another product manually in the table and verify that it worked within the Store's admin for that product. 

Once you know what the correct `products_tax_class_id` SHOULD BE simply use the command above substituting YOUR value for the value that I used.  In other words

UPDATE `products` SET `products_tax_class_id` = ' [YOUR VALUE] ' WHERE `products_tax_class_id` <> [YOUR VALUE] ;

Make certain that you remove the extra spaces that I inserted before and after [YOUR VALUE] .

GOOD LUCK and I hope that this HELPS someone.

BJ

Edited by Chadduck

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...