Hikashop Dashboard files

  • Posts: 161
  • Thank you received: 4
2 years 11 months ago #332379

-- HikaShop version -- : 4.4.2
-- Joomla version -- : 3.9.26
-- PHP version -- : 7.2
-- Error-message(debug-mod must be tuned on) -- : none

Hi
Ive used hkashop for years, and only just noticed something.
In the Hikashop dashboard >

in the dashboard summary e.g. "sales this month". (order no.) ( cms registration name) (Hikashop email address) it displays the joomla (cms) login name.

On the orders list page - the billing / shipping/billing first name last name are displayed, along with the (CMS joomla) username.

which is the file to replace the dashboard summary "sales this month" CMS registration name, with the hikashop billing name.
thanks if you can help, and if you already knew of this is there a place to select it?

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

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
2 years 11 months ago #332389

Hi,

I'm not sure what you're talking about. The "sales this month" on the backend dashboard is by default a graph of the sum of the sales each day for the current month, so it doesn't have any name on it.
I suppose that you probably changed some settings to change the display or maybe we're talking about something else.
Could you provide some screenshots to illustrate the situation ?
Also, can you confirm that you're using HikaShop 4.4.2 ? The modificatoin might vary based on the version being used.

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

  • Posts: 161
  • Thank you received: 4
2 years 11 months ago #332407

Hi nicolas, thank you for your reply.
sorry about the info I hope this is a better explanation..
I have attached screenshots to explain.

the "Sales this month" is just an example, it could be anything, and Ive set it to show customer orders as a list for a particular month.

I dont need any major changes I am only asking for the names of the .php files that display this information on the dashboard please,
I hope to change the part wher it calls the CMS user name, and replace that with the Hiksahop customer name,
also, to remove the CMS username.

(if you wonder what is "myfield" I added that, it is work in progress to add another field.
thanks

Attachments:

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

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
2 years 11 months ago #332408

Hi,

Well, without the screenshot I would have been unable to give you the name of the file as this is not the default display of the dashboard and thus I wasn't even sure we were talking about the same thing.
I can see that you're using the legacy dashboard, and that you've configured your own widgets to display a listing of orders on the dashboard. In that case, you want to edit the file "order" of the view "dashboard" for your backend template via the menu Display>Views.
Note however that in that view, the billing/shipping address of each order is not loaded. So you'll have to first load it and then display the parts you want. For example:

$addressClass = hikashop_get('class.address');
$address = $addressClass->get($row->order_billing_address_id);
echo $address->address_firstname;

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

  • Posts: 161
  • Thank you received: 4
2 years 11 months ago #332424

Hi nicolas, thank you again, this is very useful information.
can I also please ask, which file creates this page (screenshot)

I just cant find it, thanks

Attachments:

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

  • Posts: 161
  • Thank you received: 4
2 years 11 months ago #332425

ahh ! forget that - now I find it right after I asked you :)

thanks for your help its appreciated.

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

  • Posts: 161
  • Thank you received: 4
2 years 11 months ago #332434

Thank you nicolas - I got it working thanks to you.

Attachments:

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

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
2 years 11 months ago #332440

Hi,

Great. Note that if you need to find which view file is used somewhere, you can activate the "display view files" setting temporarily. It will display borders around each area displayed by a view file with the name of the view file on the top left corner of the area.

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
2 years 11 months ago #332611

Thank you nicolas, this is very useful to know :)

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

Time to create page: 0.073 seconds
Powered by Kunena Forum