Works on paypal module

This commit is contained in:
Regis Houssin 2011-05-17 19:50:05 +00:00
parent 12bf78b7d6
commit c0ac54b8cf
2 changed files with 21 additions and 11 deletions

View File

@ -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;

View File

@ -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',