Displaying custom data in the order form (admin)

  • Posts: 73
  • Thank you received: 1
11 years 3 months ago #85237

I'm trying to get some data from the DB and display that in the order form in the back-end. The view we're talking about is views->order->tmpl->form.php

Basically I want to get a single row from the database and display some content in the customer box. I wanted to do it quick and dirty for now by implementing a function in the helper file, but what would be the best way to do this?

Thanks in advance :)

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

  • Posts: 26014
  • Thank you received: 4004
  • MODERATOR
11 years 3 months ago #85280

Hi,

Modifying files directly are not recommended, you wouldn't be able to update HikaShop without loosing your modification after that.
Modifying the helper file is highly not recommended, for same reasons.

We have a very good plugin system and you can add new blocks in the backend order form using the trigger

onAfterOrderProductsListingDisplay(&$order, $type);

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: Ortix

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

  • Posts: 73
  • Thank you received: 1
11 years 3 months ago #85302

Thanks! I will do that :D

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

Time to create page: 0.055 seconds
Powered by Kunena Forum