Răsfoiți Sursa

UNA Market like on Boonex site: Payments.

AntonLV 10 ani în urmă
părinte
comite
624c54eebb
1 a modificat fișierele cu 10 adăugiri și 1 ștergeri
  1. 10 1
      modules/boonex/payment/classes/BxPaymentModule.php

+ 10 - 1
modules/boonex/payment/classes/BxPaymentModule.php

@@ -419,7 +419,16 @@ class BxPaymentModule extends BxBaseModPaymentModule
         if($bTypeSingle)
 			$this->_oDb->setCartItems($iClientId, $sCartItems);
 
-        return $this->_oDb->updateOrderPending($aPending['id'], array('processed' => 1));
+        $bResult = $this->_oDb->updateOrderPending($aPending['id'], array('processed' => 1));
+        if($bResult) {
+			//--- 'System' -> 'Register Payment' for Alerts Engine ---//
+			bx_import('BxDolAlerts');
+	        $oZ = new BxDolAlerts('system', 'register_payment', 0, $iClientId, array('pending' => $aPending));
+	        $oZ->alert();
+			//--- 'System' -> 'Register Payment' for Alerts Engine ---//
+        }
+
+        return $bResult;
     }
 
 	public function refundPayment($mixedPending)