Răsfoiți Sursa

Ticket #418 - fixes and improvements.

AntonLV 9 ani în urmă
părinte
comite
cf095a836f

+ 2 - 0
modules/base/general/classes/BxBaseModGeneralModule.php

@@ -642,6 +642,8 @@ class BxBaseModGeneralModule extends BxDolModule
         	'email' => $oAccount->getEmail(),
             'link' => $oProfile->getUrl(),
             'icon' => $oProfile->getIcon(),
+        	'thumb' => $oProfile->getThumb(),
+        	'avatar' => $oProfile->getAvatar(),
             'unit' => $oProfile->getUnit(),
         	'active' => $oProfile->isActive(),
         );

+ 2 - 0
modules/boonex/payment/classes/BxPaymentCart.php

@@ -219,6 +219,8 @@ class BxPaymentCart extends BxBaseModPaymentCart
             'vendor_name' => $aSeller['name'],
         	'vendor_link' => $aSeller['link'],
             'vendor_icon' => $aSeller['icon'],
+        	'vendor_thumb' => $aSeller['thumb'],
+        	'vendor_avatar' => $aSeller['avatar'],
         	'vendor_unit' => $aSeller['unit'],
             'vendor_currency_code' => $aSeller['currency_code'],
             'vendor_currency_sign' => $aSeller['currency_sign'],

+ 5 - 3
modules/boonex/payment/classes/BxPaymentProviderStripe.php

@@ -205,13 +205,15 @@ class BxPaymentProviderStripe extends BxBaseModPaymentProvider implements iBxBas
 
     public function getButtonSingle($iClientId, $iVendorId, $aParams = array())
     {
-    	$aItems = array();
-    	$aCartInfo = $this->_oModule->getObjectCart()->getInfo(BX_PAYMENT_TYPE_SINGLE, $iClientId, (int)$iVendorId, $aItems);
+        $aItems = array();
+        $aCartInfo = $this->_oModule->getObjectCart()->getInfo(BX_PAYMENT_TYPE_SINGLE, $iClientId, (int)$iVendorId, $aItems);
+        if(empty($aCartInfo) || !is_array($aCartInfo))
+            return '';
 
     	return $this->_getButton(BX_PAYMENT_TYPE_SINGLE, $iClientId, $iVendorId, array_merge($aParams, array(
 			'sVendorName' => _t($this->_sLangsPrefix . 'txt_payment_to', $aCartInfo['vendor_name']),
 			'sVendorCurrency' => $aCartInfo['vendor_currency_code'],
-			'sVendorIcon' => $aCartInfo['vendor_icon'],
+			'sVendorIcon' => $aCartInfo['vendor_avatar'],
     	)));
     }