VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: insightcreative on May 17, 2013, 10:57:10 AM

Title: Solved: Order coould not be deleted
Post by: insightcreative on May 17, 2013, 10:57:10 AM
Fix: For some reason you have to have all shipping methods assigned to a shopper group.


Hi All

Seems to be my week for VM problems.  I've lost count of the sites I've installed with no problems whatsoever.

A site that is live is coming up with the following error when I try to delete an order:



        vmError: TableOrders delete Order shipmentTable = #__virtuemart_shipment_plg_weight_countries `virtuemart_order_id` = 1 dbErrorMsg
        vmError: VirtueMartModelOrders::remove 1
        Order could not be deleted.

Any help may just save my life.

Andy
Title: Re: Solved: Order coould not be deleted
Post by: jenkinhill on May 17, 2013, 16:35:43 PM
Quote from: insightcreative on May 17, 2013, 10:57:10 AM
Fix: For some reason you have to have all shipping methods assigned to a shopper group.

No you don't, unless the products have been assigned to a group, too. Most VM sites do not need to use shopper groups at all.
Title: Re: Solved: Order coould not be deleted
Post by: insightcreative on May 19, 2013, 18:30:07 PM
That's weird then.  I went through the settings and compared then with a working site and the only thing I could see that was different was that the shipping methods on one site were assigned to the 2 shopper groups that existed and the broken one didn't. I assigned the shipping methods to the shopper groups on the broken site, hit save, deleted an order and it worked.  Nothing else done.