WEBDVL Posted November 10, 2010 Share Posted November 10, 2010 Hello.How can I add items to the administration the option to delete all the carts? Link to comment Share on other sites More sharing options...
rocky Posted November 11, 2010 Share Posted November 11, 2010 See this topic. Link to comment Share on other sites More sharing options...
WEBDVL Posted November 11, 2010 Author Share Posted November 11, 2010 Hello.This I knew and I set up ... just like there to add the option to delete all at once? Link to comment Share on other sites More sharing options...
rocky Posted November 11, 2010 Share Posted November 11, 2010 The only way I can think of to delete all your carts is to run an SQL query. For example, the following query will delete all carts that didn't end up as order: DELETE FROM `ps_cart` WHERE `id_cart` NOT IN (SELECT `id_cart` FROM `ps_orders`); DELETE FROM `ps_cart_discount` WHERE `id_cart` NOT IN (SELECT `id_cart` FROM `ps_orders`); DELETE FROM `ps_cart_product` WHERE `id_cart` NOT IN (SELECT `id_cart` FROM `ps_orders`); Change ps_ to your database prefix. Make a backup of your ps_cart, ps_cart_discount and ps_cart_product tables in case something goes wrong. The only problem with this is that all your customers will lose whatever they currently have in their cart and will have to start over. Link to comment Share on other sites More sharing options...
Woutermesker Posted November 11, 2010 Share Posted November 11, 2010 Go to adminorders.php @ admin/tabs/...............under $this->colorOnBackground = true;add this line $this->delete = true;you can delete all orders you want!... $this->colorOnBackground = true; $this->delete = true; Link to comment Share on other sites More sharing options...
kolamap Posted November 28, 2010 Share Posted November 28, 2010 I added $this->delete = true; and I didn't see a difference in the cart (Back Office >> Customers >> Carts)/admin/tabs/AdminOrders.php class AdminOrders extends AdminTab { public function __construct() { global $cookie, $currentIndex; $this->table = 'order'; $this->className = 'Order'; $this->view = true; $this->colorOnBackground = true; $this->delete = true; Am I doing something incorrectly? Link to comment Share on other sites More sharing options...
adu81 Posted December 2, 2010 Share Posted December 2, 2010 @kolamapI have the same problem Link to comment Share on other sites More sharing options...
archproject Posted January 18, 2011 Share Posted January 18, 2011 gosh you guys just edited the wrong file it's suppose to be admincarts.php not adminorders.php . adminorder.php is to enable delete of ordersadmincarts.php is to enable delete of carts Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now