add field from table

  • Posts: 19
  • Thank you received: 0
  • Hikashop Business
2 weeks 3 days 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 here . 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:

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

  • Posts: 21738
  • Thank you received: 3402
  • MODERATOR
2 weeks 2 days 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: 19
  • Thank you received: 0
  • Hikashop Business
1 week 2 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: 60468
  • Thank you received: 8524
  • MODERATOR
1 week 1 day 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.082 seconds
Powered by Kunena Forum