Skip to content

Instantly share code, notes, and snippets.

@mamontov-cpp
Last active July 23, 2018 11:36
Show Gist options
  • Save mamontov-cpp/caa1785e256d1450da4f7f0267498e7f to your computer and use it in GitHub Desktop.
Save mamontov-cpp/caa1785e256d1450da4f7f0267498e7f to your computer and use it in GitHub Desktop.
Послать текущую корзину
\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