Forums / General Questions / Global price change?

Global price change?

Started by nick_alynn on 9 Oct 2008, 12:36 AM · Views: 16,232

Results 1 to 20 of 53
9 Oct 2008, 12:36 AM
#1
nick_alynn avatar

nick_alynn

New Zenner

Join Date:
Oct 2008
Posts:
18
Plugin Contributions:
0

Global price change?

Hello,

With all of the economic issues recently, the Australian dollars value has been bouncing up and down a fair bit, meaning that I'm having to constantly change the prices of products in my store (I get them overseas, paying in US dollars).

As opposed to manually editing the prices for dozens and dozens of products, is there some module (or SQL query) that I can use to increase/decrease the price of ALL items in the entire store?

Thanks for your help

9 Oct 2008, 12:47 AM
#2
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Global price change?

If the price of all products were the same it would be easy to do via an SQL query, but if you need to increase/decrease all prices by a percentage using an SQL query that's out of my league I'm afraid.

For a straight forward update of a uniform price the SQL query would be:

UPDATE products SET products_price = '9.99';

where 9.99 was the new price.

Maybe someone else here can advise on how to do it using percentage calculations.

Vger

9 Oct 2008, 12:52 AM
#3
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Global price change?

Actually, thinking about it, if you use more than one currency on your store and the Australian Dollar was not the default currency then you could do it by manually updating the exchange rate of the Australian Dollar relative to the Default Currency. That would apply to all products.

If the only currency is the Australian Dollar then I admit I haven't tried to see what would happen to product prices if the default currency was NOT set to 1.00, but to 0.95 or 1.05

Vger

9 Oct 2008, 12:55 AM
#4
nick_alynn avatar

nick_alynn

New Zenner

Join Date:
Oct 2008
Posts:
18
Plugin Contributions:
0

Re: Global price change?

Yeah, thanks anyway mate. A large number of my products are the same price, but a good 50% of the stock varies in price.

You mentioned increases by a percentage - is there a query that would allow an increase by a set dollar amount? e.g. increase all stock by, say $7.50, or something (it's okay if you don't know the query itself I'm just wondering if one exists)

9 Oct 2008, 12:58 AM
#5
nick_alynn avatar

nick_alynn

New Zenner

Join Date:
Oct 2008
Posts:
18
Plugin Contributions:
0

Re: Global price change?

Sorry, only just noticed the second post - appeared while I was replying to the other one.

To answer the question, yep, I use only the Australian dollar. I can see your point though - if the US currency was my default, then editing the exchange rate would be a great way for me to edit the prices. I only ship locally though, which is why AUD is the sole currency.

9 Oct 2008, 10:22 AM
#6
gayelston avatar

gayelston

New Zenner

Join Date:
Aug 2006
Location:
Wales
Posts:
80
Plugin Contributions:
0

Re: Global price change?

Nick Alynn:

Sorry, only just noticed the second post - appeared while I was replying to the other one.

To answer the question, yep, I use only the Australian dollar. I can see your point though - if the US currency was my default, then editing the exchange rate would be a great way for me to edit the prices. I only ship locally though, which is why AUD is the sole currency.

Hi,
Does that really matter though?
Couldn't you put the US dollar on the shop admin and make it the one that all other currencies refer to.
Then, when the US dollar goes up or down, the value of the other currencies should change.
If you are taking payments by Paypal or credit cards etc wouldn't they take whatever currency the customer pays in and change it to whatever you use?
This might seem a bit clumsy, but it seems to me if the US currency is causing your price changes, however inadvertently, if you relate your currency to the US dollar it might save you having to change all those prices.
Regards

Elston

http://www.artyfactsforcrafts.com
http://www.welshwiccashop.com

10 Oct 2008, 11:59 PM
#7
nick_alynn avatar

nick_alynn

New Zenner

Join Date:
Oct 2008
Posts:
18
Plugin Contributions:
0

Re: Global price change?

Vger:

Maybe someone else here can advise on how to do it using percentage calculations.

I ended up getting the answer from a mate of mine.

The query that did the job was:

UPDATE `zen_products` SET `products_price`=`products_price`+7.50
24 Oct 2008, 3:03 PM
#8
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Location:
Johannesburg
Posts:
408
Plugin Contributions:
0

Re: Global price change?

And if you wanted to increase the price by a fixed percentage, say 25%, all you needed to do was

UPDATE `zen_products` SET `products_price`=`products_price`*1.25
24 Oct 2008, 8:29 PM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Global price change?

Couple things on updates to prices in the products table ...

1 be sure to note that zen_products table is really the products table so check your database table prefix before running the command ...

The better place to run this would be in the Tools ... Install SQL Patches ... and do so without the prefix as this will adjust the UPDATE correctly for your prefixes if you run those as, note semi-colon on the end or each line:

UPDATE products SET products_price= products_price *1.25;
UPDATE products SET products_price= products_price +7.50;

2 after changing prices, you should run from the Tools ... Store Manager ... the Update Price Sorter ...

Caution: if you use specials, these specials are not adjusted so be sure to consider the results of price changes ...

WARNING: Before doing any changes like this a Backup is always a good idea ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

3 Nov 2008, 8:05 AM
#10
nick_alynn avatar

nick_alynn

New Zenner

Join Date:
Oct 2008
Posts:
18
Plugin Contributions:
0

Re: Global price change?

Ajeh:

1 be sure to note that zen_products table is really the products table so check your database table prefix before running the command ...

I used Fantastico to install my Z/C, so my tables run under zen_name

3 Nov 2008, 11:54 AM
#11
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,318
Plugin Contributions:
40

Re: Global price change?

I use quick updates (http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=101) to accomplish this... Nice thing for you is the added ability to change by percentage (like to cover currency fluctuations) for all products or just selected products.

~Melanie

13 Sep 2009, 5:06 AM
#12
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Global price change?

I want to increase my prices by $1.50 for my whole cart. How would I do that. Thank you.

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

14 Sep 2009, 3:55 AM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Global price change?

Backup your database ...

In the Tools ... Install SQL Patches ... run the command:

UPDATE products SET products_price= products_price +1.50;

Then go to the Tools ... Store Manager ... and run the Update Products Price Sorter ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

16 Sep 2009, 2:12 PM
#14
jqpublic avatar

jqpublic

New Zenner

Join Date:
Aug 2009
Posts:
59
Plugin Contributions:
0

Re: Global price change?

Ajeh:

Backup your database ...

In the Tools ... Install SQL Patches ... run the command:

UPDATE products SET products_price= products_price +1.50;

> 
> Then go to the Tools ... Store Manager ... and run the Update Products Price Sorter ...

I want to decrease my prices globally by 10% how would I do that?

John

all I wanna do is sell stuff. I didn't sign up for this!
John's Pet Supplies

16 Sep 2009, 3:18 PM
#15
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Global price change?

Backup your database and then you can use:

UPDATE products SET products_price= products_price * .90;

You should then run in the Tools ... Store Manager ... the Update Products Price Sorter ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

21 Jan 2010, 1:43 PM
#16
nyunyi avatar

nyunyi

New Zenner

Join Date:
Jul 2009
Posts:
10
Plugin Contributions:
0

Re: Global price change?

i have some different products of mark (casio,seiko,citizen)
How can I change the price all casio items?

thanks all answers.

21 Jan 2010, 3:37 PM
#17
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Global price change?

Are you trying to change all the prices for a specific manufacturers_id to be the same price everywhere?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

21 Jan 2010, 5:01 PM
#18
travellers avatar

travellers

Zen Follower

Join Date:
Oct 2008
Posts:
143
Plugin Contributions:
0

Re: Global price change?

I'm having a similar nightmare and came across this thread looking for a solution. On the wood building website in my sig almost every price is the result of size attributes, so from what I've read here a global price change isn't going to work for me. On top of that, not **every **product needs a price rise - there are two categories where I don't want to add 5% to every item.
At the moment I think the only option is to go and change every price manually, which with some products having a dozen or more size options is going to take me a couple of **days **to input :censored:. Surely there must be a better way than that?

The instructions say Insert Disk 3, but only two will fit...
https://www.shedtraders.co.uk
https://www.tobermorychocolate.co.uk

21 Jan 2010, 5:18 PM
#19
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Global price change?

In your case, because the products are Priced by Attributes it would be easier to write a script to manage this where you can say what Category you want updated and only update the Products in that Category that use the Attribute that you want to update the price on ...

Once written, you can then use that code anytime you need it ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!