Forums / Templates, Stylesheets, Page Layout / Increasing the prices across the board...

Increasing the prices across the board...

Locked

Views: 3,220

Results 1 to 18 of 18
This thread is locked. New replies are disabled.
5 Nov 2007, 8:31 PM
#1
senattor avatar

senattor

New Zenner

Join Date:
Nov 2007
Posts:
14
Plugin Contributions:
0

Increasing the prices across the board...

Is there a way that I can increase the prices of all products in my zencart installation across the board by a certain percentage?

For example, if I have 300 products, instead of going in and changing the prices of each product, I'd like to increase the price of every product by 5%.

Thanks!!!

5 Nov 2007, 9:05 PM
#2
nomadrw avatar

nomadrw

Zen Follower

Join Date:
Sep 2007
Location:
Somewhere in Southern Cal
Posts:
331
Plugin Contributions:
0

Re: Increasing the prices across the board...

you could write a sql and increase it by what ever percent you want.

nomad

5 Nov 2007, 9:36 PM
#3
senattor avatar

senattor

New Zenner

Join Date:
Nov 2007
Posts:
14
Plugin Contributions:
0

Re: Increasing the prices across the board...

nomadrw:

you could write a sql and increase it by what ever percent you want.

nomad

That's not a bad solution - but isn't there a solution from the admin panel? I mean, what if I had a whole heckuvalot of products (say thousands), and my overhead caused me to have to increase all my pricing by 5% or 10% to cover this new overhead? Would I really have to go in and either manually (one by one) increase the pricing, or write a SQL statement to increase the pricing from the database side?

It just seems like there must be a way to accomplish this in a simple way... but maybe I'm wrong...? :blink:

5 Nov 2007, 9:39 PM
#4
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Increasing the prices across the board...

There's no way I know of to do this from the admin. Writing a mySQL statement is probably the fastest way to do it, but unless you know what you're doing, it could be tricky. Make certain you have a current backup of your database before attempting anything like this.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

6 Nov 2007, 3:10 PM
#5
senattor avatar

senattor

New Zenner

Join Date:
Nov 2007
Posts:
14
Plugin Contributions:
0

Re: Increasing the prices across the board...

Yikes! Seriously, no doubt. I'm not a fan of throwing SQL directly at databases. Maybe this would be a good idea for a plugin...?

afo:

There's no way I know of to do this from the admin. Writing a mySQL statement is probably the fastest way to do it, but unless you know what you're doing, it could be tricky. Make certain you have a current backup of your database before attempting anything like this.

6 Nov 2007, 9:13 PM
#6
tmc_sherpa avatar

tmc_sherpa

Zen Follower

Join Date:
Mar 2007
Posts:
158
Plugin Contributions:
0

Re: Increasing the prices across the board...

Changing the value of a dollar (or whatever your base currency is) from Localization /Currency to a value other than 1.00000000 does change all the prices. I'm not sure what other problems this will cause but shipping does come to mind. Just kinda thinking out loud here so be sure to watch out for the salt.

Lazy and willing to work very hard to stay that way

6 Nov 2007, 9:16 PM
#7
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Increasing the prices across the board...

I wouldn't do that. I'd be afraid it would cause problems with other currencies or other parts of Zen Cart.

I could write the mySQL statement, but I'm a bit afraid to go there. :blink:

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

6 Nov 2007, 9:21 PM
#8
nomadrw avatar

nomadrw

Zen Follower

Join Date:
Sep 2007
Location:
Somewhere in Southern Cal
Posts:
331
Plugin Contributions:
0

Re: Increasing the prices across the board...

would that affect the other Currences if one is using auto updates on the other Currencies?

nomad

7 Nov 2007, 5:40 PM
#9
tmc_sherpa avatar

tmc_sherpa

Zen Follower

Join Date:
Mar 2007
Posts:
158
Plugin Contributions:
0

Re: Increasing the prices across the board...

I never said it was a good idea, just easy :P

Lazy and willing to work very hard to stay that way

7 Nov 2007, 7:31 PM
#10
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Increasing the prices across the board...

senattor, check your PMs. I sent you a mySQL statement to do this. I tested it, but use it at your own risk.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

14 Jan 2008, 8:17 PM
#12
jagge avatar

jagge

Zen Follower

Join Date:
Jul 2007
Posts:
110
Plugin Contributions:
0

Re: Increasing the prices across the board...

I would need one to. With 10%.
Cant anyone post the query in the forum?

/Jagge

15 Jan 2008, 4:34 AM
#13
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Increasing the prices across the board...

I'd have to work it out again. It's not something I'd post to the forum since it's really not recommended.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

15 Jan 2008, 1:54 PM
#15
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Increasing the prices across the board...

Thanks, Misty. I didn't realize Ajeh had posted that. That's exactly the mySQL statement necessary. If you want to raise the prices by 5%, change 1.35 to 1.05. To raise them by 10%, change the 1.35 to 1.10.

You can either run that in the admin under tools-> insert SQL patch or using phpMyAdmin from your webmaster panel which will provide you with a box to run the statement.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

15 Jan 2008, 2:23 PM
#16
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Increasing the prices across the board...

No problem afo..
Just as matter of interest, if
wanted to DECREASE by 5%, what would sql
statement be then please?

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

15 Jan 2008, 3:12 PM
#17
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Increasing the prices across the board...

misty:

No problem afo..
Just as matter of interest, if
wanted to DECREASE by 5%, what would sql
statement be then please?

To decrease prices by 5%, change the 1.35 to .95.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

15 Jan 2008, 3:23 PM
#18
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Increasing the prices across the board...

Thanks very much afo..
:smile:

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others