Buycourse Menu is not redirecting to PayPal

More
14 years 8 months ago #1 by Zack
Hi,

System configs are :

Joomla 1.5
Joomdle 0.6
Moodle 2.0 upgraded from 1.9

System check is all green.

Everything seems to be working fine, can show course details in Joomla, course topics etc.

I am facing problems while using Buy course link. I have created a course in Moodle and assigned paypal entrol plugin to it. Then i created a menu item of Joomdle Buycourse for this paid course. When i click on this menu it shows me Joomla registration page after filling the form it is not redirecting me to PayPal instead it is just stays on Joomla website.

How can i make it to redirect to PayPal to buy the course ?

If i see the course details it shows a paypal button upon click it takes me to PayPal site to buy. However how can i make it to direct the user to PayPal after registration ?

Please Suggest.

Thanks
ZACK

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

More
14 years 8 months ago #2 by Zack
Anyone please ?

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

More
14 years 8 months ago #3 by Antonio Durán
Replied by Antonio Durán on topic Re: Buycourse Menu is not redirecting to PayPal
Hi.

Thanks for the bug report: it should not redirect to register page, but login page instead.

To fix it, change:
File: components/com_joomdle/views/buycourse/view.html.php
Replace:
Code:
$itemid = JoomdleHelperContent::getMenuItem(); $link = urlencode ("index.php?option=com_joomdle&view=buycourse&Itemid=$itemid"); /* If user is logged, dont redirect */ if (!$user_id) { $mainframe->redirect(JURI::base ()."index.php?option=com_user&view=login&link=$link"); }
by:
Code:
$itemid = JoomdleHelperContent::getMenuItem(); $link = base64_encode ("index.php?option=com_joomdle&view=buycourse&Itemid=$itemid"); /* If user is logged, dont redirect */ if (!$user_id) { $mainframe->redirect(JURI::base ()."index.php?option=com_user&view=login&return=$link"); }

Please test and let us know if it works for you.

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