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

#   Possible to lock order after shipped

##

- **[fhmanas](/forum/user/59663-fhmanas "View fhmanas's Profile")**
- [![fhmanas's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59663-fhmanas "View fhmanas's Profile") Topic Author
- [ Offline](/forum/user/59663-fhmanas)

Less More

- Posts: 24
- Thank you received: 0
-
-

6 years 4 months ago [\#321581](#321581) by [fhmanas](/forum/user/59663-fhmanas "View fhmanas's Profile")  *[Possible to lock order after shipped](/forum/35-orders-management/900327-possible-to-lock-order-after-shipped#321581 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.3  I have different operators handling the orders. I have ACL already activated on them not being able to delete an order.  My question is, after the status has been changed to shipped/cancelled/refunded, is there a way to finally close the transaction so that it can't be deleted or edited.  As of now, after changing the status to shipped, I can revert it back to created and/or any other status. I can delete/edit items even after the shipped status has been issued.  This might be prone to fraud since it is very easy for them to change the order after it has shipped. Is there a setting, I may have overlooked regarding this. I have the full business version of Hikashop.  If this feature does not exist, may I propose this as part of the next upgrade. I think this is a very important feature for keeping the software secure.  Thanks.")* was created by *[fhmanas](/forum/user/59663-fhmanas "View fhmanas's Profile")*

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.19
-- PHP version -- : 7.3

I have different operators handling the orders. I have ACL already activated on them not being able to delete an order.

My question is, after the status has been changed to shipped/cancelled/refunded, is there a way to finally close the transaction so that it can't be deleted or edited.

As of now, after changing the status to shipped, I can revert it back to created and/or any other status. I can delete/edit items even after the shipped status has been issued.

This might be prone to fraud since it is very easy for them to change the order after it has shipped. Is there a setting, I may have overlooked
regarding this. I have the full business version of Hikashop.

If this feature does not exist, may I propose this as part of the next upgrade. I think this is a very important feature for keeping the software secure.

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMDMyNy1wb3NzaWJsZS10by1sb2NrLW9yZGVyLWFmdGVyLXNoaXBwZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

6 years 4 months ago [\#321602](#321602) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Possible to lock order after shipped](/forum/35-orders-management/900327-possible-to-lock-order-after-shipped#321602 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.3  I have different operators handling the orders. I have ACL already activated on them not being able to delete an order.  My question is, after the status has been changed to shipped/cancelled/refunded, is there a way to finally close the transaction so that it can't be deleted or edited.  As of now, after changing the status to shipped, I can revert it back to created and/or any other status. I can delete/edit items even after the shipped status has been issued.  This might be prone to fraud since it is very easy for them to change the order after it has shipped. Is there a setting, I may have overlooked regarding this. I have the full business version of Hikashop.  If this feature does not exist, may I propose this as part of the next upgrade. I think this is a very important feature for keeping the software secure.  Thanks.")*

Hi,

Well, if you don't trust the people with access to the order management, I would recommend to use HikaMarket multivendor:
[ www.hikashop.com/hikamarket-multi-vendor.html](https://www.hikashop.com/hikamarket-multi-vendor.html)
With it, you can give them access to the orders from the frontend only and you have more advanced ACLs to allow them to deny them the different options of the interface.

Also, note that while there is no option to prevent them from changing an order once shipped, the fact that a change has been made will be logged in the history of the order, which they can't change. So if you find this happening once, you can find who did it and deal with that person accordingly.

While your suggestion is a good one we can note on our end for a future release, we are already working on other things for the next release of HikaShop. If you need us to work on it in the short term for you and provide you with a special version of HikaShop with that capability, which can then be added back in the default HikaShop, that's possible. But we'll have to charge you for the development of that feature.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMDMyNy1wb3NzaWJsZS10by1sb2NrLW9yZGVyLWFmdGVyLXNoaXBwZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[fhmanas](/forum/user/59663-fhmanas "View fhmanas's Profile")**
- [![fhmanas's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59663-fhmanas "View fhmanas's Profile") Topic Author
- [ Offline](/forum/user/59663-fhmanas)

Less More

- Posts: 24
- Thank you received: 0
-
-

6 years 4 months ago -  6 years 4 months ago [\#321615](#321615) by [fhmanas](/forum/user/59663-fhmanas "View fhmanas's Profile")  Replied by *[fhmanas](/forum/user/59663-fhmanas "View fhmanas's Profile")* on topic *[Possible to lock order after shipped](/forum/35-orders-management/900327-possible-to-lock-order-after-shipped#321615 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.3  I have different operators handling the orders. I have ACL already activated on them not being able to delete an order.  My question is, after the status has been changed to shipped/cancelled/refunded, is there a way to finally close the transaction so that it can't be deleted or edited.  As of now, after changing the status to shipped, I can revert it back to created and/or any other status. I can delete/edit items even after the shipped status has been issued.  This might be prone to fraud since it is very easy for them to change the order after it has shipped. Is there a setting, I may have overlooked regarding this. I have the full business version of Hikashop.  If this feature does not exist, may I propose this as part of the next upgrade. I think this is a very important feature for keeping the software secure.  Thanks.")*

Hi, Nicolas, it is not that I don't trust my people, I just don't want to give them that kind of temptation as well for me to have a reason to doubt them if things don't tally. In any case, thank you for considering the option in a future release.

Furthermore, I would like to share with the community a workaround that I did. It is a small script added to the bottom of the view Order-&gt;Show of your backend template. It just monitors the status, and removes all buttons on the following statuses of shipped, refunded, cancelled. It does not affect nor interfere with any of the core functions of Hikashop.

Here is the code, I just added it to the bottom of the view file Order-&gt;Show.

&lt;script&gt;
// Disable buttons on shipped, cancelled, refunded
function f_checkAdminEdit (){
var l_adminEdit = document.querySelector ("#hikashop_order_field_general .hika_edit");
l_adminEdit.onmousedown = function (e){
var l_getSave;

function getSaveButton (){
var l_adminSave = document.querySelector ("#hikashop_order_field_general .hika_edit .btn-success");

if (l_adminSave) {
clearInterval(l_getSave);
l_adminSave.onmousedown = function (e){
setTimeout (f_checkStatus, 2000);
}
}
}
l_getSave = setInterval (getSaveButton, 1000);
}
}

function f_disableButtons(){
var l_hikaEdit = document.querySelectorAll(".hika_edit");
var l_hikashop_order_item_edit_value = document.querySelector(".hikashop_order_item_edit_value a");
var l_hikashop_order_item_remove_value = document.querySelector(".hikashop_order_item_remove_value a");

l_hikaEdit.forEach(function (item, index) {
item.style.display = "none";
});

l_hikashop_order_item_edit_value.style.display = "none";
l_hikashop_order_item_remove_value.style.display = "none";

}

function f_checkStatus (){
var l_orderStatus = document.querySelector(".admintable .hikashop_order_status .hikashop_order_status").innerText;

switch (l_orderStatus) {
case 'shipped':
case 'cancelled':
case 'refunded':
f_disableButtons();
break;
default:
setTimeout (f_checkAdminEdit, 2000);
}
}

f_checkStatus ();
&lt;/script&gt;

Last edit: 6 years 4 months ago by [fhmanas](/forum/user/59663-fhmanas "View fhmanas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwMDMyNy1wb3NzaWJsZS10by1sb2NrLW9yZGVyLWFmdGVyLXNoaXBwZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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?

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

Time to create page: 0.048 seconds

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