Edited by Nick, 04 September 2010 - 02:39 AM.
Posted 04 September 2010 - 02:38 AM
Posted 05 September 2010 - 02:10 AM
It looks like a "Store reset" function. A very dangerous :-) OK, added to the do-to list. Thanks. Meanwhile you can use PHP My Admin for deleting products and categories. Please remember to delete all orders as well.
Posted 05 September 2010 - 02:51 AM
It doesn't need to be a huge red button with the words do not press on it. A simple select all + delete, could be enough
A sort of Mass Delete for each kind of element (categories, products, manufacturers, orders... you name it).
I just find it time consuming to delete each element one by one, especially since clients usually change their mind way too often. I want them to be self-sufficient in managing their store. And if I had clients used to tools like phpMyAdmin, I'd be the luckiest and happiest developer on earth
Keep it up!
Posted 05 September 2010 - 01:55 PM
<? Db_DbHelper::query('delete from shop_products'); Db_DbHelper::query('delete from shop_categories'); Db_DbHelper::query('delete from shop_products_categories'); Db_DbHelper::query('delete from shop_related_products'); Db_DbHelper::query('delete from shop_product_properties'); ?>
Any time when you access the page, it will delete all products. It is better to comment out query calls in the page code when you do not use the page, and delete the page as soon as you can.