add field from table

  • Posts: 21
  • Thank you received: 0
  • Hikashop Business
11 months 2 weeks 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: 10 months 1 week ago by ChristianLocal.

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

  • Posts: 23107
  • Thank you received: 3579
  • MODERATOR
11 months 1 week 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: 21
  • Thank you received: 0
  • Hikashop Business
11 months 6 days 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: 64159
  • Thank you received: 9258
  • MODERATOR
11 months 6 days 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.079 seconds
Powered by Kunena Forum