Please include your version of Joomla, Moodle and Joomdle when seeking assistance.  Also, if you do not get an immediate response, do not bump your posting as it will be deleted.


Remember Joomdle is a free extension and the Joomdle Team has 'day time' jobs as well.

Thanks for your understanding

Welcome, Guest
Username: Password: Remember me
R0.30 Support
  • Page:
  • 1
  • 2

TOPIC: [Solved] no link or enrollment after purchase

[Solved] no link or enrollment after purchase 4 years 3 weeks ago #1

I'm not sure what I'm doing wrong.
I'm doing a virtuemart integration on a fresh install.

I'm able to get all the way through the purchase process and receive a virtuemart receipt. But I don't get the joomdle notification. In Joomdle, I can see the test users I create as a user in Joomla but they are not entered as a user in moodle.

I have changed the paypal url string to use sandbox, I don't know if that has anything to do with it.

this is my paypal string in VM
<?php
$db1 = new ps_DB();
$q = "SELECT country_2_code FROM #__vm_country WHERE country_3_code='".$user->country."' ORDER BY country_2_code ASC";
$db1->query($q);

$url = "www.sandbox.paypal.com/cgi-bin/webscr";
//$url = "www.paypal.com/cgi-bin/webscr";
$tax_total = $db->f("order_tax") + $db->f("order_shipping_tax");
$discount_total = $db->f("coupon_discount") + $db->f("order_discount");
$post_variables = Array(
"cmd" => "_ext-enter",
"redirect_cmd" => "_xclick",
"upload" => "1",
"business" => PAYPAL_EMAIL,
"receiver_email" => PAYPAL_EMAIL,
"item_name" => $VM_LANG->_('PHPSHOP_ORDER_PRINT_PO_NUMBER').": ". $db->f("order_id"),
"order_id" => $db->f("order_id"),
"invoice" => $db->f("order_number"),
"amount" => round( $db->f("order_total")-$db->f("order_shipping"), 2),
"shipping" => sprintf("%.2f", $db->f("order_shipping")),
"currency_code" => $_SESSION,

"address_override" => "1",
"first_name" => $dbbt->f('first_name'),
"last_name" => $dbbt->f('last_name'),
"address1" => $dbbt->f('address_1'),
"address2" => $dbbt->f('address_2'),
"zip" => $dbbt->f('zip'),
"city" => $dbbt->f('city'),
"state" => $dbbt->f('state'),
"country" => $db1->f('country_2_code'),
"email" => $dbbt->f('user_email'),
"night_phone_b" => $dbbt->f('phone_1'),
"cpp_header_image" => $vendor_image_url,

"return" => SECUREURL ."index.php?option=com_virtuemart&page=checkout.result&order_id=".$db->f("order_id"),
"notify_url" => SECUREURL ."administrator/components/com_joomdle/paypal_notify.php",
"cancel_return" => SECUREURL ."index.php",
"undefined_quantity" => "0",

"test_ipn" => PAYPAL_DEBUG,
"pal" => "NRUBJXESJTY24",
"no_shipping" => "1",
"no_note" => "1"
);
if( $page == "checkout.thankyou" ) {
$query_string = "?";
foreach( $post_variables as $name => $value ) {
$query_string .= $name. "=" . urlencode($value) ."&";
}
vmRedirect( $url . $query_string );
} else {
echo '<form action="'.$url.'" method="post" target="_blank">';
echo '<input type="image" name="submit" src="www.paypal.com/en_US/i/btn/x-click-but6.gif" alt="Click to pay with PayPal - it is fast, free and secure!" />';

foreach( $post_variables as $name => $value ) {
echo '<input type="hidden" name="'.$name.'" value="'.htmlspecialchars($value).'" />';
}
echo '</form>';

}
?>
Last Edit: 4 years 2 weeks ago by Antonio Durán.
The topic has been locked.

Re:not getting link or enrollment after purchase 4 years 3 weeks ago #2

Update,
I changed the connection method form cURL to File Get, and now it creates a user account in Moodle. But name and other info is not passed. Account in moodle is blank. Still not getting email from Joomdle.
The topic has been locked.

Re:not getting link or enrollment after purchase 4 years 2 weeks ago #3

Hi.

You need to have eveything in Joomdle working first before getting into VM integration.

Is the system check showing all ok?
The topic has been locked.

Re:not getting link or enrollment after purchase 4 years 2 weeks ago #4

System check is ok. It sort of works without VM. But email / name, etc. isn't passed to Joomdle. I tried downgrading to VM 1.4 because that's what it says in your documentation. But that didn't help.
The topic has been locked.

Re:not getting link or enrollment after purchase 4 years 2 weeks ago #5

Did you set VM as additional data source? Did you define the mappings you need?
The topic has been locked.

Re:not getting link or enrollment after purchase 4 years 2 weeks ago #6

I tried it both ways. Even with VM not integrated in Joomdle control panel, user info is not passed to moodle. Moodle allows me to enter but I have to type in name email etc all over again for moodle.
With VM integrated I selected it as a data source. But no fields are showing up in the mappings section.
The topic has been locked.

Re:not getting link or enrollment after purchase 4 years 2 weeks ago #7

I completely wiped all folders and databases and started over with a fresh install of joomla and moodle, followed the instructions for joomdle install. System health check ok.
Did Not install VM yet. But having the same problem. user info is not passing to the moodle db. I can browse to a course and it prompts me for user info in moodle.
Last Edit: 4 years 2 weeks ago by Jason E.
The topic has been locked.

Re:not getting link or enrollment after purchase 4 years 2 weeks ago #8

Are you sure info is not passed? Or Moodle only asks for the non-filled fields?
I mean: is name and email filled correcttly?

I just did a new installation for testing, and everything works as expected: when I create a new user in Joomla, email and name details are copied to the newly created Moodle account.
The topic has been locked.

Re:not getting link or enrollment after purchase 4 years 2 weeks ago #9

I appreciate your help. But yes, when I jump from Joomla to Moodle for the first time with each user, moodle prompts me for email and name all over again. Unfortunately I don't know a whole lot about the back end, but could there be something in my host that maybe the database pointers are off or something?
Last Edit: 4 years 2 weeks ago by Jason E.
The topic has been locked.

Re:not getting link or enrollment after purchase 4 years 2 weeks ago #10

What I mean is that you are always going to be prompted to complete some moodle info, unles all required fields are filled.

As city and country are not being filled in Joomla, moodle prompts you to fill those.

So, I repeat my question: when you are prompted to edit user details, is the email and name filled in or blank?
The topic has been locked.
  • Page:
  • 1
  • 2
Time to create page: 0.130 seconds