Course Cost in VM

  • shekar
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
15 years 1 month ago #1 by shekar
Course Cost in VM was created by shekar
Hi Antonio,

Course is ready for sale in VM by creating the new course @Moodle, but the course cost is not updating in VirtueMart.

Version Details:
Joomdle R0.5
Joomla 1.5x
Moodle 2.0x


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

More
15 years 1 month ago #2 by Antonio Durán
Replied by Antonio Durán on topic Re: Course Cost in VM
Hi.

Have you tried "Reload courses from Moodle" option?

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

  • shekar
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
15 years 1 month ago #3 by shekar
Replied by shekar on topic Re: Course Cost in VM
Yes, it's working well if we update manually using the "Reload courses from Moodle" option.

Since we are using auto sell it has to update the course cost with Moodle, but it's not updating the cost.

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

More
15 years 1 month ago #4 by Antonio Durán
Replied by Antonio Durán on topic Re: Course Cost in VM
Ah right.

I know what happens:
1- Moodle 2.0 does not put cost in course creation (you put it later in enrol pplugin)
2- Moodle does not call the "update_course" event when configuring enrolment methods

1 + 2 => no cost is set in Joomla, as when product is created, that info is not available, and later, update is not called.

A solution, I think, would be to enter course configuration after setting enrol cost, and saving again, so that update event is called.

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

  • shekar
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
15 years 1 month ago #5 by shekar
Replied by shekar on topic Re: Course Cost in VM
hmm that's what the problem... :(

And the solution works well but I don't think it's a good idea, it's a big process.

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

More
15 years 1 month ago #6 by Antonio Durán
Replied by Antonio Durán on topic Re: Course Cost in VM
Yes, I know.

But to make it easier, Moodle would have to provide events for when a course enrolment is modified, which I think it doesn't.

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