Sub-orders can't be deleted

  • Posts: 272
  • Thank you received: 13
11 years 4 months ago #80987

I'm trying to delete some tests orders in backend but I got this message: "Sub-orders [2, 4, 6] can't be deleted, please delete their parents".

What should I do?

Please Log in or Create an account to join the conversation.

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
11 years 4 months ago #80994

Hi,

You should delete the parent order and not the suborder, as explained.
Deleting a sub-order is forbidden because it would broke the database.
When you delete a parent order, his sub-orders would be automatically delete in the same time. At this moment, the delete would be clean.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 272
  • Thank you received: 13
11 years 4 months ago #81011

Ok, where can I find parent orders? In my orders list in back-end, if I filter to "All vendors" I see only 3 items and if I try delete them I got that message: "Sub-orders [2, 4, 6] can't be deleted, please delete their parents".

So I set filter to "No vendors" and I delete all the orders that it show me, the are correctly deleted. Now I set back filter to "All vendors" and I still see all vendors orders and I cannot delete them, same message: "Sub-orders [2, 4, 6] can't be deleted, please delete their parents".

What's wrong?

Please Log in or Create an account to join the conversation.

  • Posts: 272
  • Thank you received: 13
11 years 4 months ago #81012

ADD to previous post.

Now, when I click on the order menu link I go this error: 500 SQL=SELECT a.* FROM jos_hikamarket_vendor AS a WHERE a.vendor_id IN ()

Please Log in or Create an account to join the conversation.

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
11 years 4 months ago #81041

Hi,

The delete problem has been fixed.
But I can't reproduce your last problem.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 272
  • Thank you received: 13
11 years 4 months ago #81048

Thanks Jerome. I think now it's better I wait for your new package with new fixed issues and improvements so I can install it on a fresh J! and Hikashop installation. Maybe during tests something went wrong.

Hope you'll send me soon the new package so I'll go on testing.

Best regards

Please Log in or Create an account to join the conversation.

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
11 years 4 months ago #81087

Hi,

I have found and fix the SQL error.
I will send you a new package after validation of my tests.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: deltafidesign

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.062 seconds
Powered by Kunena Forum