Show guest customer name

  • Posts: 317
  • Thank you received: 17
  • Hikashop Business
4 years 1 month ago #324894

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.22

We have guest checkout. No user registration.
On Customer list (Customer/Customer) and Cart list (Customer/Cart), there is Name column, but empty.
Is it posible to show customer name?

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
4 years 1 month ago #324914

Hello,

There no option to do that by default in HikaShop and so, the only solution is to custom HikaShop in order to manage the name even in guest mode AND display this info in the backend HikaShop user listing.

From this, 2 possibilities :
- You have the html & php knowledge and we guide you to add this feature.
- You ask us for this custom via our Contact us form.

Regards

Last edit: 4 years 1 month ago by Philip.

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

  • Posts: 317
  • Thank you received: 17
  • Hikashop Business
4 years 3 weeks ago #325099

Please guide me.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 3 weeks ago #325103

Hi,

You can edit the corresponding view file of the listings where you want to add the information via the menu Display>Views in order to add your custom PHP code to run a MySQL query to load the data from the database before displaying it.
I suppose that you actually want to use the first name and last name fields of the default billing address of the customer there.
In that case, you need to run a MySQL query on the hikashop_address table to get the default billing address (address_published = 1 and address_default = 1 and address_type = 'billing').
To know which view file to edit, you can activate the "Display view files" setting of the HikaShop configuration and look again at the page where you want to do your modification. HikaShop will then display which view file displays what part of the page.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum