Works on paypal module
This commit is contained in:
parent
12bf78b7d6
commit
c0ac54b8cf
@ -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]);
|
||||
$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++;
|
||||
}
|
||||
|
||||
//$_SESSION[$_GET['transaction_id']]["L_QTY".$i];
|
||||
echo 'ref='.$product->ref.' label='.$product->libelle.'<br>';
|
||||
|
||||
$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',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user