Feature Requests

Please do NOT use this section of the forum to request help if Joomdle does not work for you in some particular way. Your post will be deleted.

[Closed] Licenses management for multiple requests

  • Paolo
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
14 years 3 weeks ago - 13 years 3 weeks ago #1 by Paolo
Hi Antonio & Chris,
I'm wondering, as long as a customer can buy multiple istances of a single course, how can it be managed?
I think, if a customer order 1 or more single courses it just get enrolled as it is now, but if the customer orders for 10 istances of a same course and 3 of another, it shouldn't get enrolled in the courses but should be registered as "licenses manager" and access a joomla administrator custom menu for managing a subgroup of users (view, create, modify, delete) and enroll them in moodle courses depending on how many "licenses" paid.
Now, how could joomdle manage this?
Thank you

p.s. I'm sorry for my bad english and thank you very much for your great work. If it can be helpful I could translate joomdle in Italian
Last edit: 13 years 3 weeks ago by Antonio Durán.
The topic has been locked.
More
14 years 3 weeks ago #2 by Antonio Durán
Replied by Antonio Durán on topic Re: Licenses management for multiple requests
Hi.

A similar thing to what you propose is the courses for children:
www.joomdle.com/wiki/Features_for_parents

If you are interested in sponsoring any related features, please write to development@joomdle.com


Thanks for your offer on the italian language: you can do the translation and we will be happy to include it for next release.
The topic has been locked.
  • Paolo
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
14 years 3 weeks ago #3 by Paolo
Thenk you very very much,
It looks like I got it working exactly like I wanted, now I'm testing it.
I didn't notice you already provide that feature.
Is there a tutorial about how to do the translation?
Thank you again
Paolo
The topic has been locked.
More
14 years 3 weeks ago #4 by Antonio Durán
Replied by Antonio Durán on topic Re: Licenses management for multiple requests
Hi.

For translation, you need to:
- Copy all joomdle english files from Joomla, and trasnlate them (lang files from components, modules and plugins)
- Copy the Moodle english lang file and translate it

Let me know if you need any help.
The topic has been locked.
  • Paolo
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
14 years 2 weeks ago #5 by Paolo
I already started with the files i found, those are for
\joomla\language\it-IT
\joomla\administrator\language\it-IT

in the next days I'll go through the other files
The topic has been locked.
More
14 years 2 weeks ago #6 by Antonio Durán
Replied by Antonio Durán on topic Re: Licenses management for multiple requests
Thanks for your collaboration Paolo.
When you have all the files ready, you can send them to antonio@joomdle.com, and I will include them for next release.
The topic has been locked.
  • Paolo
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
14 years 2 weeks ago - 14 years 2 weeks ago #7 by Paolo
I'm sorry but I have one more question
I am using Hikashop as e-commerce extension and joomdle children feature to allow a "boss" and enrol employees in my courses.
Everything is working great, except for the children registration, because i need some extra fields.
It would be cool to open again hikashop registration form or at least get the right name from the joomla registration form that joomdle uses.
I'm not using jomsocial because for private users everything works great with hikashop registration and in joomdle I can select just one additional data application.
Am I right? Is there a solution?


EDIT: I did set "Additional data source: None" and now Moodle gets right name and surname on children registration but loses all additional fields from hikashop as expected
Last edit: 14 years 2 weeks ago by Paolo.
The topic has been locked.
More
14 years 2 weeks ago #8 by Antonio Durán
Replied by Antonio Durán on topic Re: Licenses management for multiple requests
Hi.

I guess you are mapping first and lastname. It seems there is an easy solution.
Edit administrator/components/com_joomdle/helpers/mappings.php, function get_user_info_hikashop().
Change:
Code:
$user_info[$mapping->moodle_field] = JoomdleHelperMappings::get_field_value_hikashop ($mapping->joomla_field, $user->id);
By:
Code:
$value = JoomdleHelperMappings::get_field_value_hikashop ($mapping->joomla_field, $user->id); if ($value) // Only overwrite if there is something $user_info[$mapping->moodle_field] = $value;

This will make it keep the values taken from Joomla user table, fetched at the start of the function.
The topic has been locked.
  • Paolo
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
14 years 2 weeks ago - 14 years 2 weeks ago #9 by Paolo
Hi Antonio,
I did modify the mappings.php and it actually works fine for storing First name and Last name, but I loose all the additional fields in regular registration that is made via Hikashop.
The best would be to use the same Hikashop registration form also for Children registration but if I redirect Joomdle to use that registration changin the link in \components\com_joomdle\views\assigncourses\tmpl\default.php it doesn't show the form but the controlpanel because it sees the user is already logged.
In alternative it would be just fine to keep 2 different registrations. Regular one with Hikashop and Children one with Joomla/Joomdle form and just the few fields with the user filling the others when entering in Moodle if it's not possible to add more fields.
I know, it's a mess!

EDIT: I have to verify this, I probably just have problems with Hikashop registration, not your tip's fault
Last edit: 14 years 2 weeks ago by Paolo.
The topic has been locked.
More
14 years 2 weeks ago #10 by Antonio Durán
Replied by Antonio Durán on topic Re: Licenses management for multiple requests
Do you mean after applying the change, normal registration by Hikashop is not working at before?

It is clear that you won't be able to ask for additional fields in children registration. For that you would need, as you say, to use hika registration, which is not possible without re-creating the hika register view, like we did with normal joomla register view. At this moment, it's not soemthing I want to do.
The topic has been locked.