Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / MySQL: setting a new price factor in attributes

MySQL: setting a new price factor in attributes

Views: 1,009

Results 1 to 4 of 4
3 Jan 2011, 8:32 AM
#1
enquirer66 avatar

enquirer66

Zen Follower

Join Date:
Sep 2007
Posts:
215
Plugin Contributions:
0

MySQL: setting a new price factor in attributes

My knowledge of MySQL is scant. I need to be able to change the following fields:

fws_products_attributes WHERE attributes_price_factor_offset = 0.1750 so that the price factor offset = 0.20

Can anyone tell me how to do this? many thanks. Using phpMyAdmin is too slow (475 records). However, please note, not all fields contain 0.175 already some are blank
e.g. in the existing DB I have
Rows attributes_price_factor
3700 0.0000
473 0.1750
1 0.2000 (Changed this manually)

Yes, I know, backup first!

Many thanks.

3 Jan 2011, 2:56 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: MySQL: setting a new price factor in attributes

You could backup your database then run in the Tools ... Install SQL Patches ...

UPDATE products_attributes SET attributes_price_factor_offset = 0.20 WHERE attributes_price_factor_offset = 0.1750;

NOTE: if you run that in phpMyAdmin, you will need to add your table prefix, if you are using them ...

3 Jan 2011, 3:38 PM
#3
enquirer66 avatar

enquirer66

Zen Follower

Join Date:
Sep 2007
Posts:
215
Plugin Contributions:
0

Re: MySQL: setting a new price factor in attributes

Many thanks. Tried this using Tools and message read theat i statement processed but when I checked a product it still had the old figure in it. Why would that be?

3 Jan 2011, 3:40 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: MySQL: setting a new price factor in attributes

Browse the products_attributes table and check that you are using the correct values and fields for the change that you want to make ...