tomliuwhite Posted November 28, 2006 Posted November 28, 2006 I've created a few new products in the catalog. Each item has a price of $10,000. This is not the real price. Is there another way of changing all the prices in the database? For example, if I want all the prices to change to $5,000, then I can make the change in seconds rather than go through the long, aggravating process of changing each one through the OSC Admin
Jack_mcs Posted November 28, 2006 Posted November 28, 2006 Go into phpmyadmin and issue this command update products set products_price=5000 Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
tomliuwhite Posted November 28, 2006 Author Posted November 28, 2006 Go into phpmyadmin and issue this commandupdate products set products_price=5000 Jack Thanks, if i just want to change products whose price is 1000 to 5000, what should i do?
sheldonlg Posted November 28, 2006 Posted November 28, 2006 Thanks, if i just want to change products whose price is 1000 to 5000, what should i do? Add a WHERE clause. It would be something like WHERE (products_price<=5000 AND products_price>=1000). Shelly
tomliuwhite Posted November 29, 2006 Author Posted November 29, 2006 Add a WHERE clause. It would be something like WHERE (products_price<=5000 AND products_price>=1000). Shelly Thanks! But after i run "update products set products_price=5000" in phpmyadmin-> SQL, i got the below error: Warning: Cannot modify header information - headers already sent by (output started at /usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/header_meta_style.inc.php:27) in /usr/local/cpanel/base/3rdparty/phpMyAdmin/libraries/common.lib.php on line 1154 what problem could it be?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.