';
if (sizeof($messages)) {
- foreach ($messages as $message)
- {
+ foreach ($messages as $message) {
$html.= '
';
if ($message['is_new_for_me']){
$html.= '
';
diff --git a/modules/paypal/paypal.php b/modules/paypal/paypal.php
index 5a7c093e..95e7b02a 100755
--- a/modules/paypal/paypal.php
+++ b/modules/paypal/paypal.php
@@ -725,6 +725,7 @@ class PayPal extends PaymentModule
// Get product amount to refund
$amount = $order->total_shipping;
+ $message = $this->l('Cancel shipping cost result:').'
';
if ($amount > 0){
$refund = $this->_makeRefund($paypal_order['id_transaction'], (int)$order->id, $amount);
@@ -734,8 +735,12 @@ class PayPal extends PaymentModule
mail('contact@bebeboutik.com', 'Erreur dans le remboursement', 'Erreur remboursement échoué pour la commande ' . $order_detail->id_order);
} else {
$this->refundSave($order->id, 0, $amount, $cookie->id_employee);
+ $message .= $this->l('Transaction error because of the amount of the shipping cost!').'
';
}
}
+
+ $this->formatMessage($refund, $message);
+ $this->_addNewPrivateMessage((int)$order->id, $message);
}
public function hookCancelProduct($params)