
Originally Posted by
actionjackson57
Thanks again Rod. Much appreciated. I am too much of a neophyte to try these fixes. I am doing all 2000 of them, one by one. Take care.
Geo
Ouch! Assuming they take you 60 seconds each, that is well over 30hours work that you have ahead of you.
If I were you I'd be making a copy of my zencart database, and spending a few hours playing around with phpMyAdmin and a few SQL commands
To help get you going, the following example (entered into phpMyAdmin, or even into the 'install SQL patches' input box of zencart itself) will update all of the products prices to "99.95" on all products that were added to the store on the 3rd Nov 2009".
Code:
update `zen_products` set `products_price` = 99.95 WHERE `products_date_added` like '2009-11-03%'
As you can see, it really is quite simple ... The "price" is pretty obvious, you can set it to whatever you like, and as I said previously, the 'difficult' part is what you mean when you say a 'range of products'.
In the example above, the 'range' is "where products_date_added is like 2009-11-03. The "%" is a 'wildcard' that will match all times during this day.
If you modify the code like thus:
Code:
update `zen_products` set `products_price` = 99.95 WHERE `products_date_added` like '2009-11%'
The 'range' will be for any product added during any date/time in Nov 2009.
Yet another example:
Code:
update `zen_products` set `products_price` = 99.95 WHERE `products_model` like 'DVD%'
Will set a price of $99.95 where the product_model definition starts with "DVD"
Once you have determined exactly what command(s) you need for your 'range' of products, simply make a copy (of the command), open your original database and paste the command in to the SQL query box.
Not only will this be quicker than doing it one by one, it'll also give a bit of exposure to SQL commands that I'm sure you'll find useful in the future.
Cheers
Rod