Forums / Currencies & Sales Taxes, VAT, GST, etc. / Updating UK Vat rise to 17.5%

Updating UK Vat rise to 17.5%

Locked

Started by calljj on 2 Dec 2009, 5:13 PM · Views: 2,728

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
2 Dec 2009, 5:13 PM
#1
calljj avatar

calljj

Zen Follower

Join Date:
Mar 2007
Posts:
253
Plugin Contributions:
2

Updating UK Vat rise to 17.5%

HI Everyone,

In the UK, if you wish to keep your retail pricing the same, you are going to have to modify the pricing in zencart to do this.

Run the statement below on your db (after making many backups, and of course at your own risk!)

update products set products_price = products_price0.978723404255, products_price_sorter = products_price_sorter0.978723404255

Then adjust the sales tax amount to 17.5% under the admin/location/tax rates

If you're just going to rise your pricing, then all you have to do is alter the sales tax amount under the admin.

Hope this helps some people out

26 Dec 2009, 6:55 PM
#2
natty avatar

natty

New Zenner

Join Date:
Dec 2008
Posts:
65
Plugin Contributions:
0

Re: Updating UK Vat rise to 17.5%

Hi Calljj

Thanks for this, I was going to update all our products one by 1. Lucky for me that is less than 50 products but it was still going to take time.

Many thanks
Natty

1 Jan 2010, 11:58 AM
#3
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Updating UK Vat rise to 17.5%

I should point out that Ajeh does NOT recommend updating the Products Price Sorter in this way - I can't recall the location of the post, but the message was to update the products_price and then use admin > tools > store manager > update Products Price Sorter.

And don't forget about products priced by attributes.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

1 Jan 2010, 5:44 PM
#4
natty avatar

natty

New Zenner

Join Date:
Dec 2008
Posts:
65
Plugin Contributions:
0

Re: Updating UK Vat rise to 17.5%

Just some info for people.

I have now done this on my store. The calculation is spot on, I've had to manually change 3 prices in my catalog as they ended up being 59.9499 and I've put it to 59.95 again.

Then following Ryk's advice I have manually updated the Products Price Sorter in Admin > Tools > Store Manager > Update Products Price Sorter.

Happy New Year
Natty

1 Jan 2010, 7:53 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Updating UK Vat rise to 17.5%

The purpose of the products_price_sorter is for the display sort order of products by price so that additional calculations do not have to take part in the Catalog ...

Whether or not those prices are "rounded" does not really matter ... what matters is the order of the products when sorted by price ...

The Updater in the Store Manager for the Products Price Sorter is built based on the Master Categories ID and then calculates all of the prices to match those that would be "displayed" on the Catalog ...

This is automatically done when Products are edited ...

Usually, the only time this needs to be run is when Products are Imported as the products_price_sorter is usually wrong ...

NOTE: always backup before running the Update Products Price Sorter ...

NOTE: if you do NOT have master_categories_id set on your Products then this could run incorrectly ...

NOTE: if you use Linked Products, running the Update Master Categories ID will select the "first" Product found in the products_to_categories table and this may not be the correct categories_id to base the master_categories_id on ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

2 Jan 2010, 8:33 AM
#6
calljj avatar

calljj

Zen Follower

Join Date:
Mar 2007
Posts:
253
Plugin Contributions:
2

Re: Updating UK Vat rise to 17.5%

I just updated over 100 products on my site with it and worked fine.
not sure why you'd have to run price sorter, as no change in the sorting going on. just the application of taxation.

11 Jan 2010, 1:44 PM
#7
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Updating UK Vat rise to 17.5%

Calljj:

HI Everyone,

In the UK, if you wish to keep your retail pricing the same, you are going to have to modify the pricing in zencart to do this.

Run the statement below on your db (after making many backups, and of course at your own risk!)

update products set products_price = products_price0.978723404255, products_price_sorter = products_price_sorter0.978723404255

Then adjust the sales tax amount to 17.5% under the admin/location/tax rates

If you're just going to rise your pricing, then all you have to do is alter the sales tax amount under the admin.

Hope this helps some people out

This didn't appear to run from the Zen Cart Admin (Tools > Install SQL Patches). So I used phpMyAdmin instead.

All appears to be working well.

Many thanks for sharing this with us. :smile:

Regards,

Alex

My Contributions: Zen Lightbox | Best Sellers Reloaded

11 Jan 2010, 1:50 PM
#8
guyhancock avatar

guyhancock

New Zenner

Join Date:
Jun 2008
Location:
Brighton, Britain
Posts:
46
Plugin Contributions:
0

Re: Updating UK Vat rise to 17.5%

Why not just use the tax classes and rates?

Guy

11 Jan 2010, 9:18 PM
#9
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Updating UK Vat rise to 17.5%

guyhancock:

Why not just use the tax classes and rates?

Guy

We did, but in order to maintain the gross prices you will need to run Calljj's script. This adjusts the net prices to ensure the gross prices remain the same after the 2.5% increase in VAT.

My Contributions: Zen Lightbox | Best Sellers Reloaded

12 Jan 2010, 8:43 AM
#10
guyhancock avatar

guyhancock

New Zenner

Join Date:
Jun 2008
Location:
Brighton, Britain
Posts:
46
Plugin Contributions:
0

Re: Updating UK Vat rise to 17.5%

Alex, I had lowered prices and needed to show the "real" price so just did the change (though do need to round some of the resulting prices to "nice" amounts). I guess we're all going to handle this in different ways.
cheers
Guy

12 Jan 2010, 1:37 PM
#11
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Updating UK Vat rise to 17.5%

guyhancock:

Alex, I had lowered prices and needed to show the "real" price so just did the change (though do need to round some of the resulting prices to "nice" amounts). I guess we're all going to handle this in different ways.
cheers
Guy

Indeed. As with the VAT reduction last year some of my clients chose not to pass on the savings to their customers (i.e. they adjusted their gross prices).

Hope things are working well for you.

My Contributions: Zen Lightbox | Best Sellers Reloaded

15 Jan 2010, 9:31 AM
#12
daparky avatar

daparky

New Zenner

Join Date:
Jan 2010
Posts:
7
Plugin Contributions:
0

Re: Updating UK Vat rise to 17.5%

How have you come up with this calculation?

I always do a database update with a formula like this:

  1. Times the base price by the old VAT rate (8.6870 * 1.15)
  2. Divide the result by the new VAT rate (9.99/1.175)

Explain yours :)

16 Jan 2010, 8:49 AM
#13
calljj avatar

calljj

Zen Follower

Join Date:
Mar 2007
Posts:
253
Plugin Contributions:
2

Re: Updating UK Vat rise to 17.5%

Simple math to calculate required effect of taxation:
1.15/1.175 = 0.978723404255

Therefore keeping retail price the same:
base price = base price * 0.978723404255

Convert to sql statement:
update products set products_price = products_price*0.978723404255

Explain your calculation in an sql statement that is simpler than the above example? ;-)

21 Jan 2010, 12:35 PM
#14
daparky avatar

daparky

New Zenner

Join Date:
Jan 2010
Posts:
7
Plugin Contributions:
0

Re: Updating UK Vat rise to 17.5%

Something like this...
UPDATE products SET price = (price*1.15) / 1.175

22 Jan 2010, 9:32 AM
#15
calljj avatar

calljj

Zen Follower

Join Date:
Mar 2007
Posts:
253
Plugin Contributions:
2

Re: Updating UK Vat rise to 17.5%

umm. no, thats not more simpler.. the numbers might look nicer, but it ain't simpler!