"POST /ajax/basket_fly.php HTTP/1.0" 200
но от реальных пользователей да и не такое кол-во как пишется в базу, за 1 день в b_sale_fuser добавляется около 90 000 записей... // CSaleUser::Add()
// /bitrix/modules/sale/mysql/basket.php:991
public static function Add()
{
...
}
file_put_contents($_SERVER['DOCUMENT_ROOT']."/temp/logs/CSaleUser/add_".$ID.".txt", json_encode(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS)));
...
return $ID;
}
[
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/sale/general/basket.php",
"line": 3818,
"function": "Add",
"class": "CSaleUser",
"type": "::"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/sale/general/basket.php",
"line": 1798,
"function": "GetID",
"class": "CAllSaleUser",
"type": "::"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/sale/general/basket.php",
"line": 1810,
"function": "Init",
"class": "CAllSaleBasket",
"type": "::"
},
{
"file": "/home/bitrix/ext_www/test.com/include/footer/comp_viewed.php",
"line": 18,
"function": "GetBasketUserID",
"class": "CAllSaleBasket",
"type": "::"
},
{
"file": "/home/bitrix/ext_www/test.com/local/templates/aspro_next/components/bitrix/main.include/basket/template.php",
"line": 17,
"args": [
"/home/bitrix/ext_www/test.com/include/footer/comp_viewed.php"
],
"function": "include"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/classes/general/component_template.php",
"line": 790,
"args": [
"/home/bitrix/ext_www/test.com/local/templates/aspro_next/components/bitrix/main.include/basket/template.php"
],
"function": "include"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/classes/general/component_template.php",
"line": 885,
"function": "__IncludePHPTemplate",
"class": "CBitrixComponentTemplate",
"type": "->"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/classes/general/component.php",
"line": 766,
"function": "IncludeTemplate",
"class": "CBitrixComponentTemplate",
"type": "->"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/classes/general/component.php",
"line": 714,
"function": "showComponentTemplate",
"class": "CBitrixComponent",
"type": "->"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/components/bitrix/main.include/component.php",
"line": 280,
"function": "includeComponentTemplate",
"class": "CBitrixComponent",
"type": "->"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/classes/general/component.php",
"line": 605,
"args": [
"/home/bitrix/ext_www/test.com/bitrix/components/bitrix/main.include/component.php"
],
"function": "include"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/classes/general/component.php",
"line": 682,
"function": "__includeComponent",
"class": "CBitrixComponent",
"type": "->"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/classes/general/main.php",
"line": 1068,
"function": "includeComponent",
"class": "CBitrixComponent",
"type": "->"
},
{
"file": "/home/bitrix/ext_www/test.com/local/templates/aspro_next/footer.php",
"line": 66,
"function": "IncludeComponent",
"class": "CAllMain",
"type": "->"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/include/epilog_before.php",
"line": 93,
"args": [
"/home/bitrix/ext_www/test.com/local/templates/aspro_next/footer.php"
],
"function": "include_once"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/include/epilog.php",
"line": 2,
"args": [
"/home/bitrix/ext_www/test.com/bitrix/modules/main/include/epilog_before.php"
],
"function": "require"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/footer.php",
"line": 4,
"args": [
"/home/bitrix/ext_www/test.com/bitrix/modules/main/include/epilog.php"
],
"function": "require_once"
},
{
"file": "/home/bitrix/ext_www/test.com/404.php",
"line": 37,
"args": [
"/home/bitrix/ext_www/test.com/bitrix/footer.php"
],
"function": "require"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/iblock/lib/component/tools.php",
"line": 66,
"args": [
"/home/bitrix/ext_www/test.com/404.php"
],
"function": "require"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/components/bitrix/catalog/component.php",
"line": 111,
"function": "process404",
"class": "Bitrix\\Iblock\\Component\\Tools",
"type": "::"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/classes/general/component.php",
"line": 605,
"args": [
"/home/bitrix/ext_www/test.com/bitrix/components/bitrix/catalog/component.php"
],
"function": "include"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/classes/general/component.php",
"line": 682,
"function": "__includeComponent",
"class": "CBitrixComponent",
"type": "->"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/classes/general/main.php",
"line": 1068,
"function": "includeComponent",
"class": "CBitrixComponent",
"type": "->"
},
{
"file": "/home/bitrix/ext_www/test.com/catalog/index.php",
"line": 579,
"function": "IncludeComponent",
"class": "CAllMain",
"type": "->"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/modules/main/include/urlrewrite.php",
"line": 160,
"args": [
"/home/bitrix/ext_www/test.com/catalog/index.php"
],
"function": "include_once"
},
{
"file": "/home/bitrix/ext_www/test.com/bitrix/urlrewrite.php",
"line": 2,
"args": [
"/home/bitrix/ext_www/test.com/bitrix/modules/main/include/urlrewrite.php"
],
"function": "include_once"
}
]
\Bitrix\Main\EventManager::getInstance()->addEventHandler('sale', 'OnSaleStatusOrderChange', ['Handler', 'OnSaleStatusOrderChange']);
class Handler {
function OnSaleStatusOrderChange(Bitrix\Main\Event $event)
{
/** @var \Bitrix\Sale\Order $order */
$order = $event->getParameter("ENTITY");
$value = $event->getParameter("VALUE");
$oldValue = $event->getParameter("OLD_VALUE");
$paymentCollection = $order->getPaymentCollection();
$isPaid = $paymentCollection->isPaid();
if ($value === 'PA' && $isPaid === true) {
$order->setField('STATUS_ID', 'PQ');
$order->save();
}
"serviceWorker"in navigator&&(navigator.serviceWorker.controller?console.log("[PWA Builder] active service worker found, no need to register"):navigator.serviceWorker.register("pwabuilder-sw.js",{scope:"./"}).then(function(a){console.log("[PWA Builder] Service worker has been registered for scope: "+a.scope)}));
{
"dir": "ltr",
"lang": "Russian",
"name": "Site интернет-магазин",
"scope": "/",
"display": "standalone",
"start_url": "https://site.ru/",
"short_name": "Site",
"theme_color": "#A12121",
"description": "Site Site Site",
"orientation": "any",
"background_color": "#A12121",
"related_applications": [],
"prefer_related_applications": false,
"categories":["shopping","business"],
"icons": [
{
"src": "https://site.ru/images/icons/android-icon-36x36.png",
"sizes": "36x36",
"type": "image/png"
},
{
"src": "https://site.ru/images/icons/android-icon-48x48.png",
"sizes": "48x48",
"type": "image/png"
},
{
"src": "https://site.ru/images/icons/android-icon-72x72.png",
"sizes": "72x72",
"type": "image/png"
},
{
"src": "https://site.ru/images/icons/android-icon-96x96.png",
"sizes": "96x96",
"type": "image/png"
},
{
"src": "https://site.ru/images/icons/android-icon-144x144.png",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "https://site.ru/images/icons/android-icon-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any maskable"
},
{
"src": "https://site.ru/images/icons/android-icon-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"screenshots": [
{
"src": "https://site.ru/images/screenshot_1.png",
"sizes": "600x900",
"type": "image/png"
},
{
"src": "https://site.ru/images/screenshot_2.png",
"sizes": "600x900",
"type": "image/png"
},
{
"src": "https://site.ru/images/screenshot_3.png",
"sizes": "600x900",
"type": "image/png"
},
{
"src": "https://site.ru/images/screenshot_4.png",
"sizes": "1280x720",
"type": "image/png"
}
],
"url": "https://site.ru/"
}
.register("pwabuilder-sw.js", {
foreach($propertiesJson AS $key=>property){
...
$properties["S"][$arProperty["CODE"]] = $property["UF_PROP_VALUE_VALUE"];
//$property["UF_PROP_VALUE_VALUE"] = "20008404080S";
...
}
...
if(sizeof($properties["S"])){
CIBlockElement::SetPropertyValuesEx($arData['PRODUCT_ID'], $arData['IBLOCK_ID'], $properties["S"]);
}
[19.3см] [19.3 см] [d 19.3 см] [d=19.3 см] [D=19.3] могут стоять вообще в любом порядке и смешаны с другими параметрами. Задача выцепить из названия Высоту, Диаметр, Объём итд... я показал пример только на Диаметре...
https://regex101.com/r/fGBeGq/1
PHP для разбора, потом всё в excel и там уже наводить порядок по всем позициям