Re: Custom Fields in Control Panel

  • Posts: 54
  • Thank you received: 1
  • Hikashop Business
12 years 4 months ago #55400

I created my own Joomla User Profile Plugin and my client wants that registration form to appear when students go to register for classes. Is there some way to display that as the registration form instead of the Hikashop registration form when they reach the screen where they must either log in or register?

I urgently need this information.

Thank you,

Toolie

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

  • Posts: 82820
  • Thank you received: 13368
  • MODERATOR
12 years 4 months ago #55403

If you want to change the registration form on the registration page of HikaShop, you should edit the file "registration" of the view "user" via the menu Display->Views and change it to have your plugin display his form instead.

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

  • Posts: 54
  • Thank you received: 1
  • Hikashop Business
12 years 4 months ago #55485

Thank you. I found the user/registration.php file you cited, but I am not that great a programmer. Can you identify the exact code to change? I altered the standard Joomla User Profile plugin, so it would be a call to the "default". Which lines of code are we talking about, and what would I do differently? I really appreciate your help.

Thanks,

Toolie

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

  • Posts: 82820
  • Thank you received: 13368
  • MODERATOR
12 years 4 months ago #55488

I don't know how the joomla user profile plugin works.
The registration page of HikaShop is based on the registration page of Joomla 1.5 where that plugin does not exists.
You're the first one talking about that plugin here so I can't help much as I don't know what that plugin do (I think that it allows you to add fields to the form ?)

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

  • Posts: 54
  • Thank you received: 1
  • Hikashop Business
12 years 4 months ago #55792

Yes, I added quite a few fields to the form. My site is also integrating with Moodle, so the profile is being used to supply information to that program.

If I understand correctly, your custom fields do NOT integrate with the Joomla User Profile table; you're actually storing data in a separate table, is that right?

I am trying to decide whether to use your custom fields function or to try to have my user profile plugin work with your cart, and I've run out of time to get this to work.

Do you have any plans to take advantage of the Joomla User Profile plugin instead of creating your own table? I can tell from my reading of other forum topics that providing the ability for site owners to use the Joomla User Profile plugin or a customized version of that plugin would be highly desirable.

What are your thoughts on this?

Toolie

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

  • Posts: 82820
  • Thank you received: 13368
  • MODERATOR
12 years 4 months ago #55848

Yes, the custom fields in HikaShop are stored in the user table of HikaShop.
That is necessary since you can have a "guest checkout" mode in HikaShop where there is no joomla user account created for the user during the checkout while still asking specific user-centric question to the user.

Also, the fields in joomla are usually used to enter the address of the user. However, the address custom fields of hikashop are stored in another table: the hikashop_address table. That's because one user can have several addresses in HikaShop which is not something possible with the joomla fields.

Finally, all the fields in Joomla and the fields in HikaShop can have different names and different proposes, you can create new ones, some of them are not stored in the same way (for example the country/state which is based on the hikashop_zone table in HikaShop)

Because of all that, it gets quite complex to have a synchronization between both system. It's not impossible, but it takes a lot of time. So it's not a priority for us at the moment actually.

What users usually do instead is that instead of the joomla registration page, the use the hikashop registration page so that the data of the fields goes directly in HikaShop and don't use the user profile plugin.

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

  • Posts: 54
  • Thank you received: 1
  • Hikashop Business
12 years 4 months ago #55896

OK, I successfully set up the registration form with the custom fields I wanted. But my client will want those fields to be displayed somewhere else on the site besides the back end under Customers. Also, the clients cannot access those custom fields to update the data. When he/she clicks on the User Control Panel view provided by Hikashop, those custom fields are not displayed along with the rest of the user data.

Do you have views or plugins that will display the custom fields and make them available for either the site owner and/or individual customers to update their own data? Is it possible to extend those views to include the custom fields?

Toolie

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

  • Posts: 82820
  • Thank you received: 13368
  • MODERATOR
12 years 4 months ago #55962

Custom fields of the table user and address can be edited in the back end by editing the customer via the menu Customers of HikaShop.

Custom fields of the table user can be edited on the user profile page of Joomla (you need to have the latest version of HikaShop for that as it's a new feature).
Custom fields of the table address can be edited on the address listing page of HikaShop.
For these two to be accessible easily by your users, you can create a menu item of the type hikashop user control panel via the joomla menu manager.

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

  • Posts: 54
  • Thank you received: 1
  • Hikashop Business
12 years 4 months ago #56027

I can't tell you how happy I am to discover that despite having downloaded the latest version of Hikashop for my client, I had uncharacteristically not installed it. Sure enough, the fields now appear in Hikashop's User Control Panel. Whew!

Thank you Nicholas, that's one more thing figured out.

Toolie

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

Time to create page: 0.067 seconds
Powered by Kunena Forum