АС
Size: a a a
АС
АШ
$output = array();
$fileData = array();
$statusObj = $order->getOne('Status');
$path = $_SERVER['DOCUMENT_ROOT'].'/assets/notifydata.json';
$num = str_replace('/', '-', $order->get('num'));
$output[$num]['status'] = $statusObj->get('name');
if(file_exists($path)){
$fileData = json_decode(file_get_contents($path), 1);
if($fileData){
$output = array_merge($fileData,$output);
}
}
$data = json_encode($output,JSON_UNESCAPED_UNICODE);
$result = file_put_contents($path, $data, LOCK_EX);
$modx->log(1, print_r(file_get_contents($path),1));
АШ
А
АШ
А
АШ
А
АШ
S
А
S
S
А
L
S
S
L
L