Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I change the DB


Guest

Recommended Posts

HI all

I am trying to add a option to allow the user to swap between with and without tax.

"Display TAX on/off v1.0"

 

The first change is the DB as follows:-

................................................................................

........................................

DB CHANGES:

-----------

 

First change the DISPLAY_PRICE_WITH_TAX to DISPLAY_PRICE_WITH_TAX_DEFAULT

This is what the shop will show as default.

 

Here's the SQL:

 

UPDATE `configuration` SET `configuration_key` = 'DISPLAY_PRICE_WITH_TAX_DEFAULT'

WHERE `configuration_key` = 'DISPLAY_PRICE_WITH_TAX' LIMIT 1

................................................................................

....................................................

 

I am not very good on DataBases can anyone give me more details on the changes I need to make..

 

Do I just edit DISPLAY_PRICE_WITH_TAX to read DISPLAY_PRICE_WITH_TAX_DEFAULT

 

 

Thanks

Tony

Link to comment
Share on other sites

Who pays taxes are the responsibility of the shop owner. If you give your customers a choise, it seems they will always choose not to pay taxes.

 

As for your change, I wouldn't change one of the standard definitions in the shop. Other pieces of code depend on it as well as some contributions. You should add your option as a new one and change the code you want affected accordingly.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

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