Skip to main content

Hikashop Widgets

More
7 years 2 months ago #308567 by phiddius
Hikashop Widgets was created by phiddius
-- HikaShop version -- : 4.1
-- Joomla version -- : 3.9.8
-- PHP version -- : 7.2
-- Error-message(debug-mod must be tuned on) -- : none

Hi,

How would I include a new field into a report widget,?

I currently have: INV.no. Customer: Order Status: Total
I would like: INV.no. Customer: MyField: Order Status: Total

thanks for any advice

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

More
7 years 2 months ago #308575 by nicolas
Replied by nicolas on topic Hikashop Widgets
Hi,

You'll want to edit the file "order.php" of the view "dashboard" via the menu Display>Views.
There, you need to add the header of your field. For example:
Code:
<th class="title"> My field </th>
after:
Code:
<th class="title"> <?php echo JText::_('CUSTOMER'); ?> </th>
And then display the field:
Code:
<td class="hk_center"> <?php echo $row->XXX; ?> </td>
before:
Code:
<td class="hk_center"> <?php echo hikashop_orderStatus($row->order_status); ?> </td>
where XXX is the column name of your field supposing it's an order custom field
The following user(s) said Thank You: phiddius

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

More
7 years 2 months ago #308589 by phiddius
Replied by phiddius on topic Hikashop Widgets
Excellent, thank you nicolas

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

Time to create page: 0.142 seconds
Powered by Kunena Forum