Zen Cart Logo
Forums / Basic Configuration / changing price of multiple products simultaneously

changing price of multiple products simultaneously

Locked

Views: 2,300

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
7 Oct 2006, 12:04 AM
#1
binny25 avatar

binny25

New Zenner

Join Date:
Oct 2006
Posts:
42
Plugin Contributions:
0

changing price of multiple products simultaneously

hi.

i have hundreds of items for sale, all at the same price.

how can i change the price of every product i have at once from $9 to $9.50?

thanks, matt.

7 Oct 2006, 1:15 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: changing price of multiple products simultaneously

Backup your database before attempting this ...

Providing your products_price is presently set at 9.00 and you want to change this to 9.50 you can enter this in the Tools ... Insert SQL Patches ...

UPDATE products SET products_price=9.50 where products_price=9.00;

Again, backup before attempting this change ...

7 Oct 2006, 1:18 AM
#3
binny25 avatar

binny25

New Zenner

Join Date:
Oct 2006
Posts:
42
Plugin Contributions:
0

Re: changing price of multiple products simultaneously

hi.

thanks for that.

BUT... i need to change the price details of all stock using the admin site options, NOT html.

i forgot to add this before.

thanks, matt.

7 Oct 2006, 1:22 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: changing price of multiple products simultaneously

Could you explain a bit better what it is you are trying to do ... I am a tad slow at times ...

7 Oct 2006, 1:30 AM
#5
binny25 avatar

binny25

New Zenner

Join Date:
Oct 2006
Posts:
42
Plugin Contributions:
0

Re: changing price of multiple products simultaneously

ok, thanks.

i have hundreds of different items in a variety of categories.

each item is different, but the prices are all the same = $9.

i want to change the price of every item to $9.50 in one overall change - i don't want to go through and change the price of each item individually.

i want to do this via the options in the admin section, not using html.

matt.

7 Oct 2006, 1:32 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: changing price of multiple products simultaneously

The command I gave you addresses the products table itself and effects all Products where the products_price is currently set to 9.00 and will change them all at one time to 9.50 ...

NOTE: you should then run the Tools ... Store Manager ...

Update ALL Products Price Sorter
to be able to sort by displayed prices: Update

7 Oct 2006, 1:40 AM
#7
binny25 avatar

binny25

New Zenner

Join Date:
Oct 2006
Posts:
42
Plugin Contributions:
0

Re: changing price of multiple products simultaneously

sorry, i don't know what that means.

i am new to this (started using it this week) - can u give me the detailed way to get to the option in the admin page.

i can't do any html commands as i don't know html.

thanks, matt.

7 Oct 2006, 1:55 AM
#8
ajeh avatar

ajeh

Oba-san

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

Re: changing price of multiple products simultaneously

In your Zen Cart Admin ...

You have a menubar ... one of the titles reads: Tools

Under Tools there is a menu choice for: Insert SQL Patches

This is a section of code made to allow you to issue a command that changes the data in the database ...

You need to change all of the products_price settings in the products table of your database ...

To do this, you want to make a backup of your database ...

This can be done via phpMyAdmin that should be located in your web site control panel ...

Or, by getting the Backup MySQL add-on in the Downloads located at the top of your screen ...

The command that I gave you to paste into the Insert SQL Patch page:

UPDATE products SET products_price=9.50 where products_price=9.00;  

Is designed to change all Products that currently have the products_price of 9.00 to the products_price of 9.50 all in one command ...

Then in the Tools ... Store Manager ... is an option to globally update the products_price_sorter ... so that the pricing works and sorts as if you had manually made all of these changes ... this is accomplished running the second setting that I gave you:

Update ALL Products Price Sorter
to be able to sort by displayed prices: Update

I don't know what HTML has to do with any of this, but I think that is just a confusion on terms ...

You have a database and that database contains the tables with the records of information about each product ...

You want to update all of those records related to existing products with 9.00 prices in one fell swoop vs one by one ...

That is what these two command run through your Zen Cart Admin are meant to do ...