Site maintenance: Sun 15 Nov, from 20:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Currencies & Sales Taxes, VAT, GST, etc. / Adding tax to 2000 products, but would like to make gross price the same as it is now

Adding tax to 2000 products, but would like to make gross price the same as it is now

Started by mcpisik on 1 Apr 2012, 6:11 AM · Views: 1,715

Results 1 to 4 of 4
1 Apr 2012, 6:11 AM
#1
mcpisik avatar

mcpisik

Zen Follower

Join Date:
Jan 2007
Location:
Mount Maunganui, New Zealand
Posts:
417
Plugin Contributions:
0

Adding tax to 2000 products, but would like to make gross price the same as it is now

Hi,
I'm about to do a php change to make all my products include tax.
However, we are absorbing the cost of tax (15%)
So a $50 item will still cost $50 but include tax.

How would I mass update all prices to reduce the net price by 15%? (so that the gross becomes the current $ at least)
Thanks!

2 Apr 2012, 10:25 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Adding tax to 2000 products, but would like to make gross price the same as it is now

Are you looking to configure your store to ADD vat @ 15%, so the invoice (checkout confirmation) reflects the tax amount?

If you want to REDUCE all prices by 15%, then you DIVIDE all your prices by 1.15

$115 DIVIDED BY 1.15 = $100

Using SQL via PHPMYADMIN, the following should work...

BACKUP DBASE FIRST !

UPDATE zen_products SET products_price = products_price/1.15;
(This assumes the table HAS the zen_ prefix)

UPDATE products SET products_price = products_price/1.15;
(This assumes the table DOES NOT HAVE s the zen_ prefix)

20 years a Zencart User

3 Apr 2012, 3:54 AM
#3
mcpisik avatar

mcpisik

Zen Follower

Join Date:
Jan 2007
Location:
Mount Maunganui, New Zealand
Posts:
417
Plugin Contributions:
0

Re: Adding tax to 2000 products, but would like to make gross price the same as it is now

Thanks for the reply Schoolboy...
Yes, was needing to include our NZ tax into our current prices (not add on top)

For anyone else needing to do this, I inserted:

  1. update products set products_price = products_price / 1.15, products_price_sorter = products_price_sorter / 1.15, products_last_modified = now();

    ****
    **2)
    ** UPDATE products set products_tax_class_id = 1 where products_tax_class_id = 0;

At least it seems to have worked so far.
Thanks again for always helping...

3 Apr 2012, 8:54 AM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Adding tax to 2000 products, but would like to make gross price the same as it is now

Yeah... that all looks clean emough...

20 years a Zencart User