<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
<script>new window.VConsole();</script>
$orderData = \Bitrix\Sale\Order::getList([
'select' => ['ID'],
'filter' => ['=USER_ID' => $USER->GetID()],
'order' => ['ID' => 'DESC'],
'limit' => 1
]);
if ($order = $orderData->fetch())
{
$lastOrderId = $order['ID'];
}
$('#new a')[0].click();
Если функция parseInt
встречает символ, не являющийся числом в указанной системе счисления, она пропускает этот и все последующие символы
+/\d+/.exec(el)
. $orderObj = Sale\Order::load($order['ORDER']['ID']);
$paymentCollection = $orderObj->getPaymentCollection();
$payment = $paymentCollection[0];
$service = Sale\PaySystem\Manager::getObjectById($payment->getPaymentSystemId());
$context = \Bitrix\Main\Application::getInstance()->getContext();
$service->initiatePay($payment, $context->getRequest());
<?$APPLICATION->IncludeComponent(
"bitrix:sale.order.payment",
"",
Array(
)
);?>
<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
$APPLICATION->SetTitle("Оплата заказа");
ob_start();
?>
<?$APPLICATION->IncludeComponent(
"bitrix:sale.order.payment",
"",
Array(
)
);?>
<?
$formPay = ob_get_contents();
ob_end_clean();
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_after.php");
$APPLICATION->SetTitle("Оплата заказа");
?>
<div class="formPayment">
<?
echo $formPay;
?>
</div>
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>
response: {
text: 'Fuel – Sunburn',
audio: {
id: 347465425,
owner_id: 244563967,
artist: 'Fuel',
title: 'Sunburn',
duration: 263,
date: 1424262682,
url: 'https://psv4.vk.m...VSPxjVmkPf16pYqXRAE',
lyrics_id: 14681808,
genre_id: 1
}
}
The CSS WG has resolved that transitions don't run to/from auto values.
function callback(event) {
// Provided by the core
var element = event.target; // DOM element, in this example .owl-carousel
var name = event.type; // Name of the event, in this example dragged
var namespace = event.namespace; // Namespace of the event, in this example owl.carousel
var items = event.item.count; // Number of items
var item = event.item.index; // Position of the current item
// Provided by the navigation plugin
var pages = event.page.count; // Number of pages
var page = event.page.index; // Position of the current page
var size = event.page.size; // Number of items per page
}