15 июля 2022, 12:01 0 Фильтрация происходит здесь: core/components/migx/model/migx/migx.class.php function filterItems($where, $items) { $tempitems = array(); foreach ($items as $item) { $include = true; foreach ($where as $key => $operand) { $key = explode(':', $key); $field = $key[0]; $then = $include; $else = false; $subject = $item[$field]; $operator = isset($key[1]) ? $key[1] : '='; $params = isset($key[2]) ? $key[2] : ''; $operator = strtolower($operator); switch ($operator) { case '!=': case 'neq': case 'not': case 'isnot': case 'isnt': case 'unequal': case 'notequal': $output = (($subject != $operand) ? $then : (isset($else) ? $else : '')); break; case '<': case 'lt': case 'less': case 'lessthan': $output = (($subject < $operand) ? $then : (isset($else) ? $else : '')); break; case '>': case 'gt': case 'greater': case 'greaterthan': $output = (($subject > $operand) ? $then : (isset($else) ? $else : '')); break; case '<=': case 'lte': case 'lessthanequals': case 'lessthanorequalto': $output = (($subject <= $operand) ? $then : (isset($else) ? $else : '')); break; case '>=': case 'gte': case 'greaterthanequals': case 'greaterthanequalto': $output = (($subject >= $operand) ? $then : (isset($else) ? $else : '')); break; case 'isempty': case 'empty': $output = empty($subject) ? $then : (isset($else) ? $else : ''); break; case '!empty': case 'notempty': case 'isnotempty': $output = !empty($subject) && $subject != '' ? $then : (isset($else) ? $else : ''); break; case 'isnull': case 'null': $output = $subject == null || strtolower($subject) == 'null' ? $then : (isset($else) ? $else : ''); break; case 'inarray': case 'in_array': case 'ia': case 'in': $operand = is_array($operand) ? $operand : explode(',', $operand); $output = in_array($subject, $operand) ? $then : (isset($else) ? $else : ''); break; case 'find': case 'find_in_set': $subject = is_array($subject) ? $subject : explode(',', $subject); $output = in_array($operand, $subject) ? $then : (isset($else) ? $else : ''); break; case 'find_pd': case 'find_in_pipesdelimited_set': $subject = explode('||', $subject); $output = in_array($operand, $subject) ? $then : (isset($else) ? $else : ''); break; case 'contains': $output = strpos($subject, $operand) !== false ? $then : (isset($else) ? $else : ''); break; case 'snippet': $result = $this->modx->runSnippet($params, array('subject' => $subject, 'operand' => $operand)); $output = !empty($result) ? $then : (isset($else) ? $else : ''); break; case '==': case '=': case 'eq': case 'is': case 'equal': case 'equals': case 'equalto': default: $output = (($subject == $operand) ? $then : (isset($else) ? $else : '')); break; } $include = $output ? $output : false; } if ($include) { $tempitems[] = $item; } } return $tempitems; } Вопросы / Условие вывода MIGX через getImageList для checkbox 9
MiniShop3 1.11.0 при клике на radio идет пересчет итоговой суммы в orderUI, в зависимости от способов(оплаты доставки) я так поняла. попробуй код запуска соб...
ImageOptimizer - WebP/AVIF и responsive <picture> для MODX 3 Дополнение доступно modstore.pro/packages/photos-and-files/imageoptimizer
Localizator3 для MODX 3: перевод полей и TV без отдельного context на язык, Vue 3 + PrimeV... Добавил localizator3_default_language
msInShopNotify Начиная с версии 3.0.0-beta добавлена поддержка MiniShop3 Минимальные требования: PHP 8.4 MODX 3.2 MiniShop3
MaxNotify Обновление 1.2.0-pl (03.07.2026) — добавлены уведомления о заявках FormIt через hook-сниппет `maxNotifyFormIt`; — добавлены ...
[msBonus2] 1.3.0 Бонус-коды, уведомления о сгорании и совместимость с msMultiCurre... Да, планируется. Даже чуть больше, чем просто бонусная система)
FileMan - прикрепление файлов к ресурсам для MODX 3 Добрый день! Может что-то с правами доступа к файлам? Посмотрите логи в modx, в php. С ходу сложно ответить, ранее не было таких случаев.
core/components/migx/model/migx/migx.class.php