Your IP : 216.73.216.86


Current Path : /var/www/homesaver/www/bitrix/blocks/bitrix/store.salescenter.order.details/
Upload File :
Current File : /var/www/homesaver/www/bitrix/blocks/bitrix/store.salescenter.order.details/class.php

<?php

use Bitrix\Main\HttpContext;

if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true)
{
	die();
}

class StoreSalesCenterOrderDetails extends \Bitrix\Landing\LandingBlock
{
	public function init(array $params = [])
	{
		$request = HttpContext::getCurrent()->getRequest();
		$this->params['ORDER_ID'] = $request->get('orderId')
			? (int)$request->get('orderId')
			: null;
		$this->params['PAYMENT_ID'] = $request->get('paymentId')
			? (int)$request->get('paymentId')
			: null;

		// todo: need get order hash, or it in the component
	}
}