Hikashop Widgets

  • Posts: 161
  • Thank you received: 4
5 years 4 months ago #308567

-- 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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
5 years 4 months ago #308575

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:

				<th class="title">
					My field
				</th>
after:
				<th class="title">
					<?php echo JText::_('CUSTOMER'); ?>
				</th>
And then display the field:
					<td class="hk_center">
						<?php echo $row->XXX; ?>
					</td>
before:
					<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.

  • Posts: 161
  • Thank you received: 4
5 years 4 months ago #308589

Excellent, thank you nicolas

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

Time to create page: 0.053 seconds
Powered by Kunena Forum