Last product in order

  • Posts: 230
  • Thank you received: 13
3 days 2 hours ago #372444

-- HikaShop version -- : 6.5.0
-- Joomla version -- : 6.1.1
-- PHP version -- : 8.3

hi
in hikashop backend admin can edit an order and add or delete products. if the adimn deletes all the produsts, system doesnt show any error or sth like that so we have a confirmed order without any products,

i need when there is only one product in an order, delete button be disable or no posiibility to delete last product in order in any way

is that possible through overrides ?

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

  • Posts: 85796
  • Thank you received: 14091
  • MODERATOR
2 days 22 hours ago #372451

Hi,

Having no product is an order is not a problem in HikaShop.
When you click on the "new" button of the orders listing, you get an order without products by default.
So there is no mechanism to prevent this.
You could indeed do this with view overrides of the order view for your backend template via the menu Display>Views.
You can use the "Display view files" setting of the HikaShop configuration in order to find out which view file is used for the area you want to change.

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

Time to create page: 0.042 seconds
Powered by Kunena Forum