assigning values for backend

  • Posts: 33
  • Thank you received: 0
13 years 3 months ago #24278

I probably miss something... hope you can help.

Created an extra custom order field with the intension to collect some system data during the checkout.
Some variables as like which groupid the user belongs to, geolocation etc...

The custom field shows up in the frontend and I can manually fill data which indeed is added to the order in the backend.
Instead of filling in manually I would like to auto fill those with data available during the checkout. I looked in the views for field, custom_field and end but was unable to get it to work.

I also know there is a special onBeforeOrderCreate but that is just for using it in plugins I presume right?

can you give me any pointers for this?
thx!

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 3 months ago #24295

Custom fields of the table order are for asking data to the user, not to get automatically information on him.
The group id of the user is know. There is no need to collect it. When you're looking at an order, you can access the user page in HikaShop via an icon next to the username. From there, you can access the joomla user options which will give you the group of the user.

For the geolocation, there is actually a geolocation plugin which does that and which needs to be configured and published:
www.hikashop.com/en/support/documentatio...hop-geolocation.html

There is no need for custom fields or for coding for what you want.

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

Time to create page: 0.051 seconds
Powered by Kunena Forum