Administrator
- Join Date:
- Sep 2009
- Location:
- Stuart, FL
- Posts:
- 14,109
- Plugin Contributions:
- 56
Database I/O Manager (DbIo) Plugin [Support Thread]
mcqueeneycoins:
Ah, bummer! Is it something I could update via sql command (and, if so, what would that command look like)? I basically want to reset the date added on all products to match the launch date of the site, when it's ready. Thanks!
To update all products' date-added to the current date:
UPDATE products SET products_date_added = now();
Note that the above query will work in your Zen Cart admin's Tools / Install SQL Patches and, if your DB_PREFIX is an empty string, in phpMyAdmin.
If you're running the query in phpMyAdmin and you use a DB_PREFIX (e.g. 'zen_'), you'd use
UPDATE [B]zen_[/B]products SET products_date_added = now();