Zen Cart Logo
Forums / General Questions / 10% Off Prices

10% Off Prices

Locked

Views: 1,599

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
4 Apr 2007, 1:43 AM
#1
cntgifts avatar

cntgifts

Totally Zenned

Join Date:
Sep 2005
Posts:
836
Plugin Contributions:
0

10% Off Prices

Is there an sql code i can run to make al lthe products price 10% lower

4 Apr 2007, 12:23 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: 10% Off Prices

Is this to change the actual price or to offer 10% off all items?

4 Apr 2007, 2:47 PM
#3
cntgifts avatar

cntgifts

Totally Zenned

Join Date:
Sep 2005
Posts:
836
Plugin Contributions:
0

Re: 10% Off Prices

change the actual price

4 Apr 2007, 3:09 PM
#4
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: 10% Off Prices

quick updates can do that for you (depends on the amount of products if it really will be a quick update though).

But if I remember well you already use quick updates?

edit: sorry that is not an answer to your question I realize now :-)

4 Apr 2007, 3:32 PM
#5
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: 10% Off Prices

Like this:

UPDATE `products` SET `products_price` = `products_price` * 0.9;
``` ?

Backup first!
7 Apr 2007, 5:10 PM
#6
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: 10% Off Prices

Forgot to tell: you need to update the sprice sorter too, after the above.

24 Apr 2007, 3:13 AM
#7
cntgifts avatar

cntgifts

Totally Zenned

Join Date:
Sep 2005
Posts:
836
Plugin Contributions:
0

Re: 10% Off Prices

ok thanks, how can i ad 10% on to the price

24 Apr 2007, 8:08 AM
#8
ryk avatar

ryk

Totally Zenned

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

Re: 10% Off Prices

Are you serious? :shocking:

Alter the calculation part (products_price * 0.9) of paulm's query above to products_price * 1.1

24 Apr 2007, 3:59 PM
#9
afo avatar

afo

Totally Zenned

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

Re: 10% Off Prices

Ryk:

Are you serious? :shocking:

Alter the calculation part (products_price * 0.9) of paulm's query above to products_price * 1.1

Actually, no. It'll work if the prices haven't been discounted that way first, but it won't put them back where they were originally.

If the product was originally $100 and was discounted 10%, the result (100 * 0.9) is $90. If the $90 is multiplied by 1.1, it'll be $99, not $100.

24 Apr 2007, 9:52 PM
#10
ryk avatar

ryk

Totally Zenned

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

Re: 10% Off Prices

That wasn't the question afo - it was "how can I add 10% to the price" with no mention of prior discount.

Regardless - the principle is the same; CnTGifts needs to work out the formula to apply for whatever s/he requires to do.

25 Apr 2007, 3:56 AM
#11
afo avatar

afo

Totally Zenned

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

Re: 10% Off Prices

Ryk:

That wasn't the question afo - it was "how can I add 10% to the price" with no mention of prior discount.

Regardless - the principle is the same; CnTGifts needs to work out the formula to apply for whatever s/he requires to do.

The "add 10%" question was unclear since it followed the "10% off" question. As I said before, they'll work independently, but not in tandem.

If it's a temporary price reduction, I'd elect to go the 10% discount route available in ZC. That way, if you want to go back, you just remove it and no data has actually been touched.