1С-Битрикс
- 28 ответов
- 0 вопросов
8
Вклад в тег
в добавок при создании курса нету кнопки запросить курс.
$showGetRate = ($baseCurrency != '' && in_array($baseCurrency, array('RUB', 'BYR', 'BYN', 'UAH')));
откуда-то подтягиваются и как-то считаются, где и как?
if (!($currencyAgent = $agentIterator->Fetch())) {
Currency\CurrencyManager::updateBaseRates();
$checkDate = Main\Type\DateTime::createFromTimestamp(strtotime('tomorrow 00:01:00'));
CAgent::AddAgent('\Bitrix\Currency\CurrencyManager::currencyBaseRateAgent();', 'currency', 'Y', 86400, '', 'Y', $checkDate->toString(), 100, false, true);
}
# created — timestamp
delete from usertable where status = 'notverified' and created < date_sub( now( ), interval 1 minute );
...
if(in_array("POPULARITY", $arSorts)){
$arAvailableSort["SHOWS"] = array("SHOWS", "desc");
}
if(in_array("NAME", $arSorts)){
$arAvailableSort["NAME"] = array("NAME", "asc");
}
if(in_array("CATALOG_QUANTITY", $arSorts)){
$arAvailableSort["CATALOG_QUANTITY"] = array("CATALOG_QUANTITY", "desc");
}
...
if ($_SERVER["REQUEST_METHOD"] == "POST" && $_REQUEST["Reindex"] == "Y") {
@set_time_limit(0);
$res = CSearch::ReIndexAll(
$bFull, COption::GetOptionInt("search", "max_execution_time"), $NS, $_REQUEST["clear_suggest"] === "Y"
);
if (is_array($res)):
?>
<script>
CloseWaitWindow();
DoNext(<?echo $jsNS?>);
</script>
<?php
else:
?>
<script>
CloseWaitWindow();
EndReindex();
var search_message = BX('search_message');
if (search_message)
search_message.style.display = 'none';
</script>
<?php
endif;
}
function DoNext(NS) {
var queryString = 'Reindex=Y'
+ '&lang=<?echo htmlspecialcharsbx(LANG)?>';
...
ShowWaitWindow();
BX.ajax.post(
'search_reindex.php?' + queryString,
NS,
function (result) {
document.getElementById('reindex_result_div').innerHTML = result;
var href = document.getElementById('continue_href');
if (!href) {
CloseWaitWindow();
StopReindex();
}
}
);
return false;
}