Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Update prices per category not working

Update prices per category not working

Views: 781

Results 1 to 3 of 3
7 Jan 2014, 10:19 AM
#1
pascal020 avatar

pascal020

New Zenner

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

Update prices per category not working

I'm trying to update the prices per category with:

UPDATE products SET products_price = products_price = x.xx WHERE master_categories_id = xx;

But the prices are not updated after the insertion. The price fields are blank.
I just want to set a price, not % or such.

Any suggestions?
Thanks

7 Jan 2014, 1:50 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Update prices per category not working

pascal020:

I'm trying to update the prices per category with:

UPDATE products SET products_price = products_price = x.xx WHERE master_categories_id = xx;

But the prices are not updated after the insertion. The price fields are blank.
I just want to set a price, not % or such.

Any suggestions?
Thanks

Have you tried:

UPDATE products SET products_price = x.xx WHERE master_categories_id = xx;

And is it that you are trying to make all items have the same price, correct?

By-the-way, backup your database before using the above suggestion. It should result in a change of products_price, but wouldn't want something to go wrong and not be recoverable.

7 Jan 2014, 1:56 PM
#3
pascal020 avatar

pascal020

New Zenner

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

Re: Update prices per category not working

mc12345678, it is working :)

Yes, same prices in the category and yes, I always backup before making changes to the database.

Many thanks