Guest Posted July 14, 2008 Posted July 14, 2008 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 Quote
Jack_mcs Posted July 14, 2008 Posted July 14, 2008 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 Quote 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
Recommended Posts
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.