[Solved] double enrollment

  • lecebri
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
15 years 7 months ago #11 by lecebri
Replied by lecebri on topic Re: double enrollment
it doesn't work for me. i'm using tienda and i always got the "add to cart" button which redirect me to buy the course again
The topic has been locked.
  • lecebri
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
15 years 7 months ago #12 by lecebri
Replied by lecebri on topic Re: double enrollment
i don't know why it doesn'work. maybe i've done something wrong:
- i've put those two functions : get_course_url() and is_enrol in the content.php in the helper folder of the administrator side
- i've replace the default.php in the detail view

but it doesn't walk please help.
The topic has been locked.
  • lecebri
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
15 years 7 months ago #13 by lecebri
Replied by lecebri on topic Re: double enrollment
now i'm getting this error:
Parse error: syntax error, unexpected $end in C:\xampp\htdocs\elearning\components\com_joomdle\views\detail\tmpl\default.php on line 215
The topic has been locked.
More
15 years 7 months ago - 15 years 7 months ago #14 by shekar
Replied by shekar on topic Re: double enrollment
I have attached my working files [ content.php and default.php ]

I am using
Joomdle 4.1
Jpomla 1.5x
Moodle 1.9x

I have tested by enrolling and un-enrolling the user, for me its working fine.
Attachments:
Last edit: 15 years 7 months ago by shekar.
The topic has been locked.
  • lecebri
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
15 years 7 months ago #15 by lecebri
Replied by lecebri on topic Re: double enrollment
my configuration is as your but i always got the same error:

Parse error: syntax error, unexpected $end in C:\xampp\htdocs\elearning\components\com_joomdle\views\detail\tmpl\default.php on line 215
The topic has been locked.
More
15 years 7 months ago #16 by shekar
Replied by shekar on topic Re: double enrollment
In file default.php there are 2 short tags, try by fixing that.
@Lines 153, 169.
The topic has been locked.
  • lecebri
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
15 years 7 months ago #17 by lecebri
Replied by lecebri on topic Re: double enrollment
another one
@line 176, 185

finally the problem is fixed thank you pwrssr
The topic has been locked.
  • lecebri
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
15 years 7 months ago #18 by lecebri
Replied by lecebri on topic Re: double enrollment
it works
The topic has been locked.
More
15 years 6 months ago #19 by Terence
Replied by Terence on topic Re: double enrollment
Hello. I'm really confused now.

1. Where is the Content.php and Default.php files?
2. Does this changes add an enrol button?

What I'm trying to do with my Joomla is to enroll the logged in user to a course through the VM list of courses. The courses is free, so there is no need for payment.

Can someone please help me?
The topic has been locked.
More
15 years 6 months ago #20 by Antonio Durán
Replied by Antonio Durán on topic Re: double enrollment
Hi.

This does not change anything, if all is working for you. It is only a problem with PHP short tags in sites that don't support them.

As for your question: You cannot make VM enrol users into free courses (ie: no Paypal). You would need to patch your VM to do that (we have never done it).

If you want to continue discussion/ask anything else, please open a new thread, as this one is already solved, and it is better to have issues separated.

Antonio
The topic has been locked.