Hikashop Widgets

  • Posts: 112
  • Thank you received: 1
  • Hikashop Business
6 days 3 hours 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: 66303
  • Thank you received: 9727
  • MODERATOR
5 days 18 hours 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: 112
  • Thank you received: 1
  • Hikashop Business
5 days 17 hours ago #308589

Excellent, thank you nicolas

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

Time to create page: 0.052 seconds
Powered by Kunena Forum