Aha, I get what you mean...
No, sorry, it's a profile plugin to extend the users table - I'm practically using exactly the profile plugin that is included in joomla for all intents and purposes.
I have added 2 configuration parameters that use the usergroup (combo that pre-populates with usergroups) - 1 parameter for admins of the plugin to select the
usergroup associated with their
Customers and another to select the usergroup for their |
Trade Customers.
So, for example, in the plugin, the admin could specify the following CONFIG;
- customer_group -> registered
- trade_group -> editor
Then, when users register, I have a field called
customertype which I'd like to be a combo presenting the user with 2 options from those specified in the plugin's config:
- Regular Customer -> registered
- Trade Customer -> editor
Does that make sense?
I suppose that the easiest way to achieve it is to go ahead and just create the 2 options:
<option value="1">Regular Customer</option>
<option value="2">Trade Customer</option>
Then programmatically get the usergroup id from the config parameter right? The only thing I don't like is the hard-coding of it... If I were to ever add another (3rd) store user level, I'd have to go back in and add it manually...
Anyway, I hope this clarifies it...
Many thanks again for looking at this!!!
Gez