Merge branch 'ticket-14309-fixAlreadyPaid' into develop
This commit is contained in:
commit
b7830f009e
@ -1231,8 +1231,9 @@ class PDFCore extends PDF_PageGroupCore
|
||||
}
|
||||
|
||||
$this->Cell($w[++$i], $lineSize, $productQuantity, 'BT', 0, 'C');
|
||||
if (!$delivery)
|
||||
$this->Cell($w[++$i], $lineSize, (self::$orderSlip ? '-' : '').self::convertSign(Tools::displayPrice($final_price, self::$currency, true)), 'BT', 0, 'R');
|
||||
if (!$delivery && isset($w[++$i])) {
|
||||
$this->Cell($w[$i], $lineSize, (self::$orderSlip ? '-' : '').self::convertSign(Tools::displayPrice($final_price, self::$currency, true)), 'BT', 0, 'R');
|
||||
}
|
||||
$this->Ln();
|
||||
}
|
||||
}
|
||||
|
@ -226,8 +226,13 @@ class Paybox extends PaymentModule
|
||||
global $cart, $smarty;
|
||||
|
||||
$customer = new Customer((int)$cart->id_customer);
|
||||
if (!Validate::isLoadedObject($customer))
|
||||
if (!Validate::isLoadedObject($customer)) {
|
||||
die(Tools::displayError());
|
||||
}
|
||||
|
||||
if ($id_order = (int)Order::getOrderByCartId($cart->id)) {
|
||||
Tools::redirect('order-detail.php?id_order='.$id_order);
|
||||
}
|
||||
|
||||
// verif if there's at least one order with this delivery address
|
||||
$orders_with_delivery_address = Db::getInstance()->getValue('
|
||||
@ -428,7 +433,7 @@ class Paybox extends PaymentModule
|
||||
parent::validateOrder((int)$id_cart, (int)$id_order_state, (float)$amount_paid, $payment_method, $message, $transaction, $currency_special, $dont_touch_amount, $secure_key);
|
||||
}
|
||||
|
||||
if(!empty($values) && isset($values['i'])) {
|
||||
if(!empty($values) && isset($values['i']) && !empty($values['i'])) {
|
||||
if (!class_exists('Fraud')) {
|
||||
include_once _MODULE_DIR_.'fraud/fraud.php';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user