deleting custom info from orders

  • Posts: 29
  • Thank you received: 0
13 years 2 months ago #25432

Hi. I have modified the admin>orders page for my own custom information about the customers computer (my business)

I am having trouble working out how to delete this information, please would you be able to explain how i'd go about nulling the fields that i've created in the jos_hikashop_order table (mac1, pcname1 and os1) from the admin>orders panel.

Screenshot included here.



As you can see, i've added the delete icon, but unsure on what to link it to.

If you could help or point me in the right direction i would be very grateful.

thanks very much.

Attachments:
Last edit: 13 years 2 months ago by sepyh.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 2 months ago #25443

Hi,

Well, if you're ok with modifying any files of HikaShop, the best is to use the URL index.php?option=com_hikashop&ctrl=order&task=deleteinfo&cid=XXX&info=YYY for your icon.
Then, in the controllers/order.php file, you should add a function deleteinfo (and add it in the modify array in the constructor function of the class.
In that function deleteinfo, you would take the cid and the info variable form the get and run the query to delete the information from the order in the database and then redirect to the order show task.
Otherwise, you could do all that directly in the view but it's less nice even though that would allow you to update more easily HikaShop.

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

Time to create page: 0.054 seconds
Powered by Kunena Forum