Your IP : 3.15.231.159


Current Path : /home/bitrix/ext_www/klimatlend.ua/bitrix/components/bitrix/sale.order.full/
Upload File :
Current File : /home/bitrix/ext_www/klimatlend.ua/bitrix/components/bitrix/sale.order.full/.parameters.php

<?
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();

$arYesNo = Array(
	"Y" => GetMessage("SOF_DESC_YES"),
	"N" => GetMessage("SOF_DESC_NO"),
);

$arComponentParameters = Array(
	"PARAMETERS" => Array(
		"PATH_TO_BASKET" => Array(
			"NAME" => GetMessage("SOF_PATH_TO_BASKET"),
			"TYPE" => "STRING",
			"MULTIPLE" => "N",
			"DEFAULT" => "basket.php",
			"COLS" => 25,
			"PARENT" => "ADDITIONAL_SETTINGS",
		),
		"PATH_TO_PERSONAL" => Array(
			"NAME" => GetMessage("SOF_PATH_TO_PERSONAL"),
			"TYPE" => "STRING",
			"MULTIPLE" => "N",
			"DEFAULT" => "index.php",
			"COLS" => 25,
			"PARENT" => "ADDITIONAL_SETTINGS",
		),
		"PATH_TO_AUTH" => Array(
			"NAME" => GetMessage("SOF_PATH_TO_AUTH"),
			"TYPE" => "STRING",
			"MULTIPLE" => "N",
			"DEFAULT" => "/auth.php",
			"COLS" => 25,
			"PARENT" => "ADDITIONAL_SETTINGS",
		),
		"PATH_TO_PAYMENT" => Array(
			"NAME" => GetMessage("SOF_PATH_TO_PAYMENT"),
			"TYPE" => "STRING",
			"MULTIPLE" => "N",
			"DEFAULT" => "payment.php",
			"COLS" => 25,
			"PARENT" => "ADDITIONAL_SETTINGS",
		),
		"ALLOW_PAY_FROM_ACCOUNT" => Array(
			"NAME"=>GetMessage("SOF_ALLOW_PAY_FROM_ACCOUNT"),
			"TYPE"=>"LIST", "MULTIPLE"=>"N",
			"VALUES"=>array(
					"N" => GetMessage("SOF_DESC_NO"),
					"Y" => GetMessage("SOF_DESC_YES")
				),
			"DEFAULT"=>"Y",
			"ADDITIONAL_VALUES"=>"N",
			"PARENT" => "BASE",
		),
		"SHOW_MENU" => Array(
			"NAME"=>GetMessage("SOF_SHOW_MENU"),
			"TYPE"=>"LIST", "MULTIPLE"=>"N",
			"VALUES"=>array(
					"N" => GetMessage("SOF_DESC_NO"),
					"Y" => GetMessage("SOF_DESC_YES")
				),
			"DEFAULT"=>"Y",
			"ADDITIONAL_VALUES"=>"N",
			"PARENT" => "BASE",
		),

		"USE_AJAX_LOCATIONS" => Array(
			"NAME" => GetMessage("SOF_USE_AJAX_LOCATIONS"),
			"TYPE" => "CHECKBOX",
			"MULTIPLE" => "N",
			"DEFAULT" => "Y",
			"PARENT" => "ADDITIONAL_SETTINGS",
		),

		"SHOW_AJAX_DELIVERY_LINK" => array(
			"NAME" => GetMessage('SOF_SHOW_AJAX_DELIVERY_LINK'),
			"TYPE" => "LIST",
			"MULTIPLE" => "N",
			"VALUES" => array(
				"Y" => GetMessage('SOF_SHOW_AJAX_DELIVERY_LINK_Y'),
				"N" => GetMessage('SOF_SHOW_AJAX_DELIVERY_LINK_N'),
				"S" => GetMessage('SOF_SHOW_AJAX_DELIVERY_LINK_S'),
			),
			"DEFAULT" => "Y",
			"PARENT" => "ADDITIONAL_SETTINGS",
		),
		"CITY_OUT_LOCATION" => array(
			"NAME" => GetMessage("SALE_SOF_PARAM_CITY_OUT_LOCATION"),
			"TYPE" => "CHECKBOX",
			"DEFAULT" => "Y",
			"ADDITIONAL_VALUES" => "N",
			"MULTIPLE" => "N",
			"PARENT" => "BASE",
		),
		"COUNT_DELIVERY_TAX" => Array(
			"NAME"=>GetMessage("SOF_COUNT_DELIVERY_TAX"),
			"TYPE"=>"LIST", "MULTIPLE"=>"N",
			"VALUES"=>array(
					"N" => GetMessage("SOF_DESC_NO"),
					"Y" => GetMessage("SOF_DESC_YES")
				),
			"DEFAULT"=>"N",
			"ADDITIONAL_VALUES"=>"N",
			"PARENT" => "BASE",
		),
		"COUNT_DISCOUNT_4_ALL_QUANTITY" => Array(
			"NAME"=>GetMessage("SOF_COUNT_DISCOUNT_4_ALL_QUANTITY"),
			"TYPE"=>"LIST", "MULTIPLE"=>"N",
			"VALUES"=>array(
					"N" => GetMessage("SOF_DESC_NO"),
					"Y" => GetMessage("SOF_DESC_YES")
				),
			"DEFAULT"=>"N",
			"ADDITIONAL_VALUES"=>"N",
			"PARENT" => "BASE",
		),
		"SET_TITLE" => Array(),
		"PRICE_VAT_INCLUDE" => array(
			"NAME" => GetMessage('SOF_VAT_INCLUDE'),
			"TYPE" => "CHECKBOX",
			"MULTIPLE" => "N",
			"DEFAULT" => "Y",
			"ADDITIONAL_VALUES"=>"N",
			"PARENT" => "ADDITIONAL_SETTINGS",
		),

		"PRICE_VAT_SHOW_VALUE" => array(
			"NAME" => GetMessage('SOF_VAT_SHOW_VALUE'),
			"TYPE" => "CHECKBOX",
			"MULTIPLE" => "N",
			"DEFAULT" => "Y",
			"ADDITIONAL_VALUES"=>"N",
			"PARENT" => "ADDITIONAL_SETTINGS",
		),
		"ONLY_FULL_PAY_FROM_ACCOUNT" => Array(
			"NAME"=>GetMessage("SOF_ONLY_FULL_PAY_FROM_ACCOUNT"),
			"TYPE"=>"LIST", "MULTIPLE"=>"N",
			"VALUES"=>array(
					"N" => GetMessage("SOF_DESC_NO"),
					"Y" => GetMessage("SOF_DESC_YES")
				),
			"DEFAULT"=>"N",
			"ADDITIONAL_VALUES"=>"N",
			"PARENT" => "BASE",
		),

		"SEND_NEW_USER_NOTIFY" => Array(
			"NAME"=>GetMessage("SOA_SEND_NEW_USER_NOTIFY"),
			"TYPE" => "CHECKBOX",
			"DEFAULT"=>"Y",
			"PARENT" => "BASE",
		),

		"DELIVERY_NO_SESSION" => Array(
			"NAME" => GetMessage("SOA_DELIVERY_NO_SESSION"),
			"TYPE" => "CHECKBOX",
			"MULTIPLE" => "N",
			"DEFAULT" => "N",
			"PARENT" => "BASE",
		)
	)
);

if(CModule::IncludeModule("sale"))
{
	$dbPerson = CSalePersonType::GetList(Array("SORT" => "ASC", "NAME" => "ASC"));
	while($arPerson = $dbPerson->GetNext())
	{

		$arPers2Prop = Array("" => GetMessage("SOF_SHOW_ALL"));
		$bProp = false;
		$dbProp = CSaleOrderProps::GetList(Array("SORT" => "ASC", "NAME" => "ASC"), Array("PERSON_TYPE_ID" => $arPerson["ID"]));
		while($arProp = $dbProp -> GetNext())
		{

			$arPers2Prop[$arProp["ID"]] = $arProp["NAME"];
			$bProp = true;
		}

		if($bProp)
		{
			$arComponentParameters["PARAMETERS"]["PROP_".$arPerson["ID"]] =  Array(
							"NAME" => GetMessage("SOF_PROPS_NOT_SHOW")." \"".$arPerson["NAME"]."\" (".$arPerson["LID"].")",
							"TYPE"=>"LIST", "MULTIPLE"=>"Y",
							"VALUES" => $arPers2Prop,
							"DEFAULT"=>"",
							"COLS"=>25,
							"ADDITIONAL_VALUES"=>"N",
							"PARENT" => "BASE",
				);
		}
	}
}

?>