Skip to content
Snippets Groups Projects
Commit c0ac54b8 authored by Regis Houssin's avatar Regis Houssin
Browse files

Works on paypal module

parent 12bf78b7
No related branches found
No related tags found
No related merge requests found
......@@ -156,17 +156,27 @@ if (isset($_GET['action']) && ! empty($_GET['action']) && isset($_GET['transacti
$object->ref_ext = $_SESSION[$_GET['transaction_id']]['SHIPTOCITY'];
$object->contactid = $contact->id;
$i=0;
while (isset($_SESSION[$_GET['transaction_id']]["L_NAME".$i]))
{
$product = new Product($db);
$product->fetch('',$_SESSION[$_GET['transaction_id']]["L_NUMBER".$i]);
//$_SESSION[$_GET['transaction_id']]["L_QTY".$i];
echo 'ref='.$product->ref.' label='.$product->libelle.'<br>';
$object_id = $object->create($user);
if ($object_id > 0)
{
$i=0;
while (isset($_SESSION[$_GET['transaction_id']]["L_NAME".$i]))
{
$product = new Product($db);
$product->fetch('',$_SESSION[$_GET['transaction_id']]["L_NUMBER".$i]);
//$_SESSION[$_GET['transaction_id']]["L_QTY".$i];
echo 'ref='.$product->ref.' label='.$product->libelle.'<br>';
$i++;
}
$i++;
}
$db->commit();
}
else
{
$db->rollback();
}
}
echo 'socid='.$soc->id;
......
......@@ -113,7 +113,7 @@ llxHeader();
$( "div.paypal_link" ).click(function() {
var id_value = $(this).attr("id");
if ($.jnotify) {
$.jnotify("<?php echo $langs->trans('PleaseBePatient'); ?>", 2000);
$.jnotify("<?php echo $langs->trans('PleaseBePatient'); ?>", 1500);
}
$.get( "<?php echo DOL_URL_ROOT; ?>/paypal/ajaxtransaction.php", {
action: 'showdetails',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment