How to add custom field to frontend customer order

  • Posts: 6
  • Thank you received: 0
12 years 11 months ago #37879

Hi,

I created a custom field called repair order number. this field shows up fine in the backend but I would like it to show as a column in the frontend when customers click on "customer order" section. How can I do this? by the way, it is working when they click on the order it shows that field "order show" I guess I would like to add that column to "order listing". Please help. Thanks!

Attachments:

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

  • Posts: 26185
  • Thank you received: 4030
  • MODERATOR
12 years 11 months ago #37881

Hi,

You have to edit the view "order / listing".
First, add the column in the <thead> section with

<th class="hikashop_order_repair_number_title title" align="center">
          <?php echo JText::_('REPAIR_NUMBER'); ?>
        </th>
(or just put the text without using JText)

After that, add the cell in the loop.
<td class="hikashop_order_repair_number_value">
            <?php echo $row->order_repair_number; ?>
          </td>
(where "order_repair_number" is the key of your custom field).

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.

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

  • Posts: 6
  • Thank you received: 0
12 years 11 months ago #37920

Great it worked :)..thanks!

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

Time to create page: 0.056 seconds
Powered by Kunena Forum