- Posts: 161
- Thank you received: 4
Hikashop Widgets
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
-- 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.
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:
after:
And then display the field:
before:
where XXX is the column name of your field supposing it's an order custom field
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>
Code:
<th class="title">
<?php echo JText::_('CUSTOMER'); ?>
</th>
Code:
<td class="hk_center">
<?php echo $row->XXX; ?>
</td>
Code:
<td class="hk_center">
<?php echo hikashop_orderStatus($row->order_status); ?>
</td>
The following user(s) said Thank You: phiddius
Please Log in or Create an account to join the conversation.
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