andre před 3 roky
rodič
revize
dac8197211
2 změnil soubory, kde provedl 1 přidání a 8 odebrání
  1. 1 1
      getorderdetails.php
  2. 0 7
      orderdetails.php

+ 1 - 1
getorderdetails.php

@@ -128,7 +128,7 @@ foreach($serviceIds as $serviceId) {
             $option_details['qty'] = $configoption['value'];
             if($productBillingcycle != 'Free Account') {
                 $configoptionId = Capsule::table('tblhostingconfigoptions')
-                    ->where('relid', $serviceId->id)
+                    ->where('configid', $configoption['id'])
                     ->value('optionid');
                 $option_setup = Capsule::table('tblpricing')
                     ->where('type', 'configoptions')

+ 0 - 7
orderdetails.php

@@ -5,13 +5,6 @@ if (!defined("WHMCS"))
 add_hook("EmailPreSend", 1, function($vars) {
 	if($vars['messagename'] == 'Order Confirmation') {
 		$result = localapi('GetOrderDetails', array('orderid' => $vars['mergefields']['order_id']));
-		logModuleCall(
-			'EmailPreSend',
-			__FUNCTION__,
-			$result,
-			'debug',
-			''
-		);
 		return $result;
 	}
 	return false;