Projekt

Allgemein

Profil

GX-Bug #58485 » DSGVOPackstationFix.patch

Till Tepelmann, 07.08.2018 11:28

Unterschiede anzeigen:

src/system/overloads/CheckoutConfirmationContentControl/CheckoutConfirmationContentControlOverload.inc.php (date 1533633144000)
9 9
		
10 10
		$transportConditionsSuccess = $this->_checkTransportConditions($error);
11 11
		
12
		if($transportConditionsSuccess && gm_get_conf('DATA_TRANSFER_TO_TRANSPORT_COMPANIES_STATUS')
13
		   && $this->checkConditions()
14
		   && $this->v_data_array['POST']['accept_transport_conditions'] === '1')
15
		{
16
			$languageId   = new IdType($_SESSION['languages_id']);
17
			$configKey    = new NonEmptyStringType('LOG_IP_SHIPPING');
18
			$customerName = new StringType($GLOBALS['order']->billing['firstname'] . ' '
19
			                               . $GLOBALS['order']->billing['lastname']);
20
			
21
			$agreementWriteService = StaticGXCoreLoader::getService('AgreementWrite');
22
			$agreementCustomer     = $agreementWriteService->createCustomer($customerName,
23
			                                                                new CustomerEmail($GLOBALS['order']->customer['email_address']));
24
			
25
			AgreementStoreHelper::store($languageId, LegalTextType::TRANSPORT, $agreementCustomer, $configKey);
12
		if(!$this->get_redirect_url())
13
		{
14
			if($transportConditionsSuccess && gm_get_conf('DATA_TRANSFER_TO_TRANSPORT_COMPANIES_STATUS')
15
			   && $this->checkConditions()
16
			   && $this->v_data_array['POST']['accept_transport_conditions'] === '1')
17
			{
18
				$languageId   = new IdType($_SESSION['languages_id']);
19
				$configKey    = new NonEmptyStringType('LOG_IP_SHIPPING');
20
				$customerName = new StringType($GLOBALS['order']->billing['firstname'] . ' '
21
				                               . $GLOBALS['order']->billing['lastname']);
22
				
23
				$agreementWriteService = StaticGXCoreLoader::getService('AgreementWrite');
24
				$agreementCustomer     = $agreementWriteService->createCustomer($customerName,
25
				                                                                new CustomerEmail($GLOBALS['order']->customer['email_address']));
26
				
27
				AgreementStoreHelper::store($languageId, LegalTextType::TRANSPORT, $agreementCustomer, $configKey);
28
			}
26 29
		}
27
		
28 30
		return $response;
29 31
	}
30 32
	
    (1-1/1)