Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

10% Off Prices

Locked

Started by cntgifts on 4 Apr 2007, 1:43 AM · Views: 1,601

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

Post #1 by cntgifts

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

Post #2 by kobra

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

Zen-Venom Get Bitten

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

cntgifts

Totally Zenned

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

Post #3 by cntgifts

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

Post #4 by paulm

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

Post #5 by paulm

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

Post #6 by paulm

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

Post #7 by cntgifts

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

Post #8 by ryk

Are you serious? :shocking:

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

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

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

Post #9 by afo

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.

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

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

Post #10 by 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.

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

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

Post #11 by afo

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.

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