Page 1 of 1

Upping the prices store wide

Posted: Tue Sep 15, 2009 4:52 pm
by Darntoothysam
If I want to up the prices on our store by 5-10% how would it happen? I tried exporting the store, to both CSV and XML, and I see the prices but I don't know how to up them all in one lump sum.
Is there a way to do it on the PHP side of things?
It needs to be able to be quick, and cost effective.

Thanks,
Eric

Re: Upping the prices store wide

Posted: Tue Sep 15, 2009 5:28 pm
by Tony Barnes
Use phpmyadmin and run the following SQL statments to put an extra 10% on the price for all your products:

UPDATE `isc_products` SET `prodprice` = (`prodprice` * 1.10);

That should put 10% on top of things

To turn it off, run this:

UPDATE `isc_products` SET `prodprice` = (`prodprice` / 1.10);

Hmm, Martin may want to confirm this will work before you do it!!

Re: Upping the prices store wide

Posted: Tue Sep 15, 2009 5:43 pm
by Darntoothysam
I hope he gets here soon, I'd like to get this done soon!
Thanks Tony, I hope it works :)

Re: Upping the prices store wide

Posted: Wed Sep 16, 2009 6:29 pm
by Darntoothysam
HUGE thank you to you (Tony) and Martin!

Saved me weeks of work trying to raise 1300+ products. Damn SQL did it in less than 2 seconds. Unreal.
I've decided I need to learn PHP and SQL.

Thanks again!
Eric

Re: Upping the prices store wide

Posted: Wed Sep 16, 2009 7:52 pm
by CharlieFoxtrot
Damn! That's awesome! -- I haven't tried it yet, but I can see a time in the near future when this will come in VERY HANDY! Thank you!

Here's a question... for sellers who want to all of their product prices to consistently end in ".95", this math formula will result in many variations of the "cents" portion of the product price.

Is it possible to increase prices by 10%, and then round-up (or down) to the nearest 95-cents?

Re: Upping the prices store wide

Posted: Thu Sep 17, 2009 12:02 am
by Martin
CharlieFoxtrot wrote:Here's a question... for sellers who want to all of their product prices to consistently end in ".95", this math formula will result in many variations of the "cents" portion of the product price.

Is it possible to increase prices by 10%, and then round-up (or down) to the nearest 95-cents?
Should be although I think you would need to write a small php script to handle it rather than a straight SQL statement.

Re: Upping the prices store wide

Posted: Thu Sep 17, 2009 8:41 am
by Tony Barnes
lol - how come I'm in brackets?!?1 :evil: :D

Re: Upping the prices store wide

Posted: Thu Sep 17, 2009 8:47 am
by Tony Barnes
Could you just use Round like this:

UPDATE `isc_products` SET `prodprice` = ROUND((`prodprice` * 1.10),0) - 0.05

????

(lol, back to you Martin!)