[Skip to main content](#vessel-content)

#   Sub-orders can't be deleted

##

- **[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")**
- [![deltafidesign's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4846.png)](/forum/user/4846-deltafidesign "View deltafidesign's Profile") Topic Author
- [ Offline](/forum/user/4846-deltafidesign)

Less More

- Posts: 272
- Thank you received: 13
-
-

13 years 10 months ago [\#80987](#80987) by [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")  *[Sub-orders can't be deleted](/forum/22-market-bug-report/76545-sub-orders-cant-be-deleted#80987 "I'm trying to delete some tests orders in backend but I got this message: &quot;Sub-orders &#91;2, 4, 6&#93; can't be deleted, please delete their parents&quot;.  What should I do?")* was created by *[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzc2NTQ1LXN1Yi1vcmRlcnMtY2FuLXQtYmUtZGVsZXRlZD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 10 months ago [\#80994](#80994) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Sub-orders can't be deleted](/forum/22-market-bug-report/76545-sub-orders-cant-be-deleted#80994 "I'm trying to delete some tests orders in backend but I got this message: &quot;Sub-orders &#91;2, 4, 6&#93; can't be deleted, please delete their parents&quot;.  What should I do?")*

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzc2NTQ1LXN1Yi1vcmRlcnMtY2FuLXQtYmUtZGVsZXRlZD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")**
- [![deltafidesign's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4846.png)](/forum/user/4846-deltafidesign "View deltafidesign's Profile") Topic Author
- [ Offline](/forum/user/4846-deltafidesign)

Less More

- Posts: 272
- Thank you received: 13
-
-

13 years 10 months ago [\#81011](#81011) by [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")  Replied by *[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")* on topic *[Sub-orders can't be deleted](/forum/22-market-bug-report/76545-sub-orders-cant-be-deleted#81011 "I'm trying to delete some tests orders in backend but I got this message: &quot;Sub-orders &#91;2, 4, 6&#93; can't be deleted, please delete their parents&quot;.  What should I do?")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzc2NTQ1LXN1Yi1vcmRlcnMtY2FuLXQtYmUtZGVsZXRlZD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")**
- [![deltafidesign's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4846.png)](/forum/user/4846-deltafidesign "View deltafidesign's Profile") Topic Author
- [ Offline](/forum/user/4846-deltafidesign)

Less More

- Posts: 272
- Thank you received: 13
-
-

13 years 10 months ago [\#81012](#81012) by [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")  Replied by *[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")* on topic *[Sub-orders can't be deleted](/forum/22-market-bug-report/76545-sub-orders-cant-be-deleted#81012 "I'm trying to delete some tests orders in backend but I got this message: &quot;Sub-orders &#91;2, 4, 6&#93; can't be deleted, please delete their parents&quot;.  What should I do?")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzc2NTQ1LXN1Yi1vcmRlcnMtY2FuLXQtYmUtZGVsZXRlZD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 10 months ago [\#81041](#81041) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Sub-orders can't be deleted](/forum/22-market-bug-report/76545-sub-orders-cant-be-deleted#81041 "I'm trying to delete some tests orders in backend but I got this message: &quot;Sub-orders &#91;2, 4, 6&#93; can't be deleted, please delete their parents&quot;.  What should I do?")*

Hi,

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

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzc2NTQ1LXN1Yi1vcmRlcnMtY2FuLXQtYmUtZGVsZXRlZD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")**
- [![deltafidesign's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4846.png)](/forum/user/4846-deltafidesign "View deltafidesign's Profile") Topic Author
- [ Offline](/forum/user/4846-deltafidesign)

Less More

- Posts: 272
- Thank you received: 13
-
-

13 years 10 months ago [\#81048](#81048) by [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")  Replied by *[deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")* on topic *[Sub-orders can't be deleted](/forum/22-market-bug-report/76545-sub-orders-cant-be-deleted#81048 "I'm trying to delete some tests orders in backend but I got this message: &quot;Sub-orders &#91;2, 4, 6&#93; can't be deleted, please delete their parents&quot;.  What should I do?")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzc2NTQ1LXN1Yi1vcmRlcnMtY2FuLXQtYmUtZGVsZXRlZD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 10 months ago [\#81087](#81087) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Sub-orders can't be deleted](/forum/22-market-bug-report/76545-sub-orders-cant-be-deleted#81087 "I'm trying to delete some tests orders in backend but I got this message: &quot;Sub-orders &#91;2, 4, 6&#93; can't be deleted, please delete their parents&quot;.  What should I do?")*

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 &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [deltafidesign](/forum/user/4846-deltafidesign "View deltafidesign's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzc2NTQ1LXN1Yi1vcmRlcnMtY2FuLXQtYmUtZGVsZXRlZD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.066 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
