VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Kannan76 on September 14, 2012, 06:06:12 AM

Title: Manually delete orders in database for Virtuemart 2
Post by: Kannan76 on September 14, 2012, 06:06:12 AM
Hi,

How do i manually delete the order rows in the database. I'm getting this error, while trying to delete in the BE

Quote
vmError: Seems the used shipmentmethod got deleted
vmError: TableOrders delete Order shipmentTable = #__virtuemart_shipment_plg_ `virtuemart_order_id` = 3 dbErrorMsg
vmError: VirtueMartModelOrders::remove 3
Order could not be deleted

Im using virtuemart 2.0.10 and joomla 2.5.6
Title: Re: Manually delete orders in database for Virtuemart 2
Post by: ivus on September 14, 2012, 06:22:41 AM
Hi Kannan76,

Use phpMyAdmin.

A single order is stored in at least 8 tables. I say AT LEAST because your may have more PLUGINS installed for payment and shipment.

Firstly, goto #__virtuemart_orders and find your order. Take note of the VIRTUEMART_ORDER_ID and then go through each of the other tables an remove the line items that has that same VIRTUEMART_ORDER_ID.

Be sure to also check the shipping and payment plugin tables for the VIRTUEMART_ORDER_ID too. The table names should following this naming convention:
Title: Re: Manually delete orders in database for Virtuemart 2
Post by: Kannan76 on September 14, 2012, 06:34:58 AM
Thank you ivus, all the orders have left the building!  ;D  ;D  8)
Title: Re: Manually delete orders in database for Virtuemart 2
Post by: suchafan on November 16, 2012, 23:06:43 PM
VM 2.0.8e
Joomla 2.5.7

What do you do when you have searched all of your mentioned categories in the db and the order numbers still cannot be found in those areas? 3 orders are in the VM2 orders but they are nowhere to be found in the db. This is the message I get when I try to delete them in VM2:

vmError: Seems the used shipmentmethod got deleted
vmError: TableOrders delete Order shipmentTable = #__virtuemart_shipment_plg_ `virtuemart_order_id` = 1315 dbErrorMsg
vmError: VirtueMartModelOrders::remove 1315
        Order could not be deleted.

Could a developer take a look, perhaps? I don't know where to look anymore....Thank you :)