Moodle not in wrapper after PayPal payment. I need help ASAP

  • Omar Nery's
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 1 month ago - 14 years 1 month ago #1 by Omar Nery's
Okay I have spent over a week on this! I seriously need help! Please!

I have put Tienda on the "shelf" for now. So I am using the regular PayPal pluging that comes with Moodle (no Tienda or VM). I have tried too many things (suggested by forums here, moodle forums, and paypal forums) to mention here. I guess you can ask me if I did A or B and I can give a Yes or No answer with some detail.

Here is what happens:
1) I click the PayPal button in moodle (inside the Joomla wrapper)
2) I get redirected to PayPal site you make payment (so far so good)
3) I login (PayPal) and click the "Pay Now" button.
4) I get redirected to the purchased course page. But NOT wrapped in Joomla!

Here are some screen shots. I hope they make clear what I am trying to say:






I am over one month past my deadline. Not only did I loose a bonus, I am at the risk of loosing my job!!!
I hope someone can help me PLEASE!!!

Thank you in advanced!
-Omar
Last edit: 14 years 1 month ago by Omar Nery's.

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

More
14 years 1 month ago #2 by Antonio Durán
Hi.

I tried your scenario and can confirm your problem.

I have a fix that seems to work, so please try it and let us know if it gives the expected results.

In file "components/com_joomdle/views/buycourse/tmpl/default.php", replace:
Code:
<input type="hidden" name="return" value="<?php echo $this->moodle_url.'/enrol/paypal/return.php?id='.$course_id ?>" />

By:
Code:
<?php if ($this->params->get( 'linkstarget' ) == 'wrapper') : $url = "index.php?option=com_joomdle&view=wrapper&course_id=$course_id"; $url = JoomdleHelperContent::get_course_url ($course_id); ?> <input type="hidden" name="return" value="<?php echo $url; ?>" /> <?php else : ?> <input type="hidden" name="return" value="<?php echo $this->moodle_url.'/enrol/paypal/return.php?id='.$course_id ?>" /> <?php endif; ?>

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

  • Omar Nery's
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 1 month ago - 14 years 1 month ago #3 by Omar Nery's
Antonio!! YOU ARE THE MAN!! Woohoo! :woohoo: You have no idea how happy you have made me! :cheer:
Needless to say, it worked perfectly. I should have posted my problem weeks ago. But even though I'm a designer, not a coder, I like to dig in first to see what I can learn.

Thank you! Thank you! Thank you!

I need to talk to you about some (paid) work we need from you. What is your email?

Have an awesome day!

Espero que no te ofendas pero,
Que Dios te bendiga!:)
Last edit: 14 years 1 month ago by Omar Nery's.

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

More
14 years 1 month ago #4 by Antonio Durán
I am happy to hear that it worked fine for you.

Our email for professional matters is development@joomdle.com. Feel free to email us with your requirements.

Thanks for your kind words :)

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

  • Omar Nery's
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 1 month ago #5 by Omar Nery's
I was going to send an email, but then I figured someone else might need this too.
So here it goes:

I have installed a Certificate module (in Moodle). I would like to integrate this Certificate Module into a Joomla module through Joomdle. Is this something that you could create for us? How soon can we do this? How much would it cost? I need to implement this "Joomdle Certificate Module" as soon as possible.

Specs:
Very simple. All I need is the module to show (in Joomla) all the certificates (PDF links) available to the (registered) user for his/her completed courses.
Example:
Module name: My Certifcates
Course: Polka 101
Course: Macrame 202
Etc.

Here are some screen shots of what I would like to achieve:







P.S. I wrote Chris about this but I think he might be too busy

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

More
14 years 1 month ago #6 by Antonio Durán
Hi Omar.

Just wanted to let you know that I will look into this ASAP and write you privately.

This would be for Moodle 1.9, right?

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

  • Omar Nery's
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 1 month ago - 14 years 1 month ago #7 by Omar Nery's
Oops! Double post! Sorry. Deleted
Last edit: 14 years 1 month ago by Omar Nery's. Reason: Double post

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

  • Omar Nery's
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 1 month ago #8 by Omar Nery's
Thank you for your quick response.
Yes, Moodle 1.9 is correct.
I'm looking forward to it.

onerys [at] gmail [dot] com
or
omar.cpe [at] gmail [dot] com

Thank you so much!
-Omar

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