add field from table

  • Posts: 48
  • Thank you received: 0
6 years 3 months ago #285167

-- HikaShop version -- : 3.2.2
-- Joomla version -- : 3.8.3
-- PHP version -- : 5.6.32

Hello,
I have completed the webservice connection and it is working well. I have a field in the table jos_hikashop_order called order_anchor_tracking_1 that brings in the tracking info from my distributor with a WS soap call. I want to display it inside the orders, see attached pic, so my customers can track the orders. How do i add it ? thanks

Attachments:
Last edit: 6 years 2 months ago by ChristianLocal.

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
6 years 3 months ago #285183

Hello,

You can use triggers to interact with the order display.
Depending what you want to do (and which view exactly), you will find different triggers, like " onHikashopBeforeDisplayView " or " onAfterOrderProductsListingDisplay "
www.hikashop.com/support/documentation/6...ntation.html#display

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: 48
  • Thank you received: 0
6 years 3 months ago #285506

Hello, I don't think I am explaining what I am trying to do very well. I have attached a picture and url from the help file. I would like to add a field to this order area. I have created the field in the table already. I am trying to bring in the shipping info from my distributor.


www.hikashop.com/support/documentation/7...mmunity-builder.html


thanks

Attachments:

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

  • Posts: 81540
  • Thank you received: 13069
  • MODERATOR
6 years 3 months ago #285508

Hi,

If you want to add a column to that listing, you'll have to edit the php file of that community builder plugin.
In there, you'll be able to display the data in that new column like that:
<?php echo $row->XXX; ?>
where XXX is the name of your new column in hikashop_order.

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

Time to create page: 0.062 seconds
Powered by Kunena Forum