Hi Dunk,
Using the code you've got in your previous post will adjust the prices of all products in your table - you'll also need to add something like
Code:
WHERE products_tax_class_id = 1
to ensure only taxable products are modified (changing the tax class id to whatever tax class your products are in).
Don't forget if you've also got specials set up you'll need to update their base prices in products_specials and those for any product attributes that modify product pricing in products_attributes.
As for changing the tax rate, this depends on the tax zones you have set up. I would think you'd just have one tax rate currently set at 15% so something like
Code:
update tax_rates set tax_rate = 17.5000 where tax_rate = 15.0000;
would do the job. The tax rate description could also be updated here at the same time.
For me, personally, it's highly unlikely that our shop will generate a sale overnight on 31st Dec/1st Jan so I'm planning on working out the SQL statements I need to run in advance then copy-paste them in to the admin SQL patches probably first thing Friday morning (or whatever time I awake
). Likewise it *could* be done as late as you can Thursday night.
What I have so far is:
Code:
UPDATE products SET products_price = products_price*0.978723404255, products_price_sorter = products_price_sorter*0.978723404255 WHERE products_tax_class_id = 1;
UPDATE products_attributes SET options_values_price = options_values_price*0.978723404255;
UPDATE specials SET specials_new_products_price = specials_new_products_price*0.978723404255;
UPDATE tax_rates SET tax_rate = 17.5000,tax_description = "VAT included @ 17.5%" WHERE tax_rate = 15.0000;
Hope this helps in some way
Chris