Last active
July 6, 2016 10:31
-
-
Save EvilWolf/1d0c8c32d4ca1ebd818864f5fe99ba95 to your computer and use it in GitHub Desktop.
Оформление заказа в 1C Битрикс.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Данный метод вызывает события из списка вплоть до OnSaleCalculateOrder | |
// $arShoppingCart - может содержать не всю корзину, а только те элементы которые необходимо добавить. | |
$arOrder = CSaleOrder::DoCalculateOrder( | |
$siteId, | |
$userId, | |
$arShoppingCart, | |
$personTypeId, | |
$arOrderPropsValues, | |
$deliveryId, | |
$paySystemId, | |
$arOptions, | |
$arErrors, | |
$arWarnings | |
); | |
$orderId = CSaleOrder::DoSaveOrder( | |
&$arOrder, | |
$arAdditionalFields, | |
$orderId, | |
&$arErrors, | |
$arCoupons = array(), | |
$arStoreBarcodeOrderFormData = array(), | |
$bSaveBarcodes = false | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Более расписанный вариант у наших разработчиков есть в блогах битрикса.
https://dev.1c-bitrix.ru/community/webdev/user/227946/blog/18513/