Frenzy Posted March 26, 2010 Share Posted March 26, 2010 Can someone with more experience of presta let me know how to delete carts from B.O. i have been trawled by various search companies and have recieved loads of customer carts anything up to 30 carts usually a couple seconds apartRegardshttp://www.outsidecentresports.co.uk/ Link to comment Share on other sites More sharing options...
Ciscowrig Posted March 26, 2010 Share Posted March 26, 2010 The cart or the order?I know in AdminOrders.php I changed the following section: $this->table = 'order'; $this->className = 'Order'; $this->view = 'noActionColumn'; $this->colorOnBackground = true; $this->_select = ' to this adding in the delete line. $this->table = 'order'; $this->className = 'Order'; $this->view = 'noActionColumn'; $this->colorOnBackground = true; $this->delete = true; $this->_select = ' There's a similar section in AdminCarts.php that you might be able to change the line for deletes from false to true. $this->table = 'cart'; $this->className = 'Cart'; $this->lang = false; $this->edit = false; $this->view = true; $this->delete = false; However neither option actually deletes it from your database just your screen. I had to manually go into my database to delete the test orders we did when training our customers (we have a very small group using the site, not computer literate so we did a training session) so they did not show up for my customers as valid orders. Link to comment Share on other sites More sharing options...
Frenzy Posted March 26, 2010 Author Share Posted March 26, 2010 Hi Ciscowrig,many thanks for your reply, i will attempt it this evening, it's the actual customer carts (the ones that have not been completed / checked out) that i am trying to get rid ofRagards againFrenzy Link to comment Share on other sites More sharing options...
Ciscowrig Posted March 26, 2010 Share Posted March 26, 2010 I should say that I don't "Think" it deletes them from your database. It appeared sporadic for me. Some were there, some were not. Link to comment Share on other sites More sharing options...
bigstef Posted March 26, 2010 Share Posted March 26, 2010 To delete a customers cart log onto your BO, go to Customers then click Carts and then delete whatever carts you want. Link to comment Share on other sites More sharing options...
Ciscowrig Posted March 26, 2010 Share Posted March 26, 2010 Unfortunately bigstef it's not standard for the "delete" option to appear.Frenzy - I realized this might be a good thing to use myself so tried it. Changing the delete value from false to true, does in fact bring up the delete option and deleted the items from the admin side. I have not verified through phpmyadmin that the actual database was changed.You will be able to make multiple selections through checkboxes to delete your spammers carts. Link to comment Share on other sites More sharing options...
bigstef Posted March 26, 2010 Share Posted March 26, 2010 I have added an extra bit of code to my file to enable delete of the carts.In AdminCarts.php located in Admin/Tabs change the function construct to look like thisplease make sure you back up any file you are going to change.Hope this does it for you. class AdminCarts extends AdminTab { public function __construct() { $this->table = 'cart'; $this->className = 'Cart'; $this->lang = false; $this->edit = false; $this->view = true; $this->delete = true; EDIT: Updated to look better Link to comment Share on other sites More sharing options...
Frenzy Posted March 26, 2010 Author Share Posted March 26, 2010 Once again guys VMT for your help i'll let you know if this works for me Link to comment Share on other sites More sharing options...
DejaVu Posted June 16, 2010 Share Posted June 16, 2010 Works fine lads. Thank you very much. Link to comment Share on other sites More sharing options...
annunakiwww Posted February 7, 2011 Share Posted February 7, 2011 Thanks a lot guys! Link to comment Share on other sites More sharing options...
PrestAware Posted May 26, 2011 Share Posted May 26, 2011 Thanks.. This is the best option for me.. After checking the data it was also deleted in mysql.But i was wondering.Isn't there a way to just not store 'spammers carts' in DB,but only the ordered ones? Link to comment Share on other sites More sharing options...
inveostore.com Posted March 13, 2012 Share Posted March 13, 2012 Unused spammers carts can be deleted by using this module. Link to comment Share on other sites More sharing options...
Recommended Posts