Last active
July 23, 2018 11:36
-
-
Save mamontov-cpp/caa1785e256d1450da4f7f0267498e7f to your computer and use it in GitHub Desktop.
Послать текущую корзину
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
\CModule::IncludeModule('intervolga.mybox'); | |
\CModule::IncludeModule('sale'); | |
$fuserId = \CSaleBasket::GetBasketUserID(); | |
$arBasketRequest = \Intervolga\Mybox\Tool\Basket::getBasketForRequest($fuserId); | |
$arData = \Intervolga\Mybox\Tool\Front\RealTime::xmlEncode($arBasketRequest); | |
$arFrontResult = \Intervolga\Mybox\Tool\Front\RealTime::request( | |
\Intervolga\Mybox\Tool\Front\RealTime::TYPE_DISCOUNT, | |
array(), | |
array( | |
"Data" => $arData | |
) | |
); | |
echo "Корзина:"; | |
var_export($arData); | |
echo "\n\n"; | |
echo "Фронт:"; | |
var_export($arFrontResult); | |
echo "\n\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment