{
  "$schema": "https://rev.uask.pro/knowledge/node.schema.json",
  "schema_version": "1.0",
  "entity": "revolution.settings.product.options",
  "canonical_url": "https://rev.uask.pro/settings/product/options.html",
  "anchors": {
    "doc": "#doc",
    "dev": "#dev"
  },
  "title_ru": "Опции товара",
  "summary_ru": "Здесь настраивается раздел «Опции товара» и то, как он выглядит и работает для покупателей.",
  "version_scope": "5.x",
  "source": {
    "kind": "shipped_admin_template",
    "file": "admin/view/template/revolution/revtheme.twig",
    "tab_id": "tab_product_options"
  },
  "retrieval": {
    "read_when": [
      "настроить размеры и цвета товара",
      "изменить опции товара"
    ],
    "skip_when": [
      "задача не касается компонента и ни одно условие связи не совпадает"
    ],
    "strategy": "read_current_then_conditionally_follow_edges",
    "stop_condition": "получены поля, ограничения и проверка, необходимые для текущей задачи",
    "do_not": [
      "не читать весь сайт последовательно",
      "не выдумывать серверную валидацию защищённого контроллера"
    ]
  },
  "fields": [
    {
      "name": "revtheme_product_all[options_null_qw]",
      "label_ru": "Отображать опции с 0 количеством",
      "control": "radio",
      "format": "enum / boolean",
      "options": [
        {
          "value": "1",
          "label": "Да"
        },
        {
          "value": "0",
          "label": "Нет"
        }
      ],
      "default_evidence": "не задан в HTML",
      "validation_evidence": "Явная HTML-валидация не задана",
      "conditional_ui": false,
      "purpose_ru": "Включает или отключает указанную возможность.",
      "source_line": 5488,
      "consumer_files": [
        "system/revolution.ocmod.xml",
        "catalog/view/theme/revolution/template/common/footer.twig",
        "catalog/view/theme/revolution/template/product/category.twig",
        "catalog/view/theme/revolution/template/product/manufacturer_info.twig",
        "catalog/view/theme/revolution/template/product/product.twig",
        "catalog/view/theme/revolution/template/product/search.twig",
        "catalog/view/theme/revolution/template/product/special.twig",
        "catalog/view/theme/revolution/template/revolution/revblog_blog.twig"
      ]
    },
    {
      "name": "revtheme_product_all[opt_price]",
      "label_ru": "Отображать цену опций",
      "control": "radio",
      "format": "enum / boolean",
      "options": [
        {
          "value": "1",
          "label": "Да"
        },
        {
          "value": "0",
          "label": "Нет"
        }
      ],
      "default_evidence": "не задан в HTML",
      "validation_evidence": "Явная HTML-валидация не задана",
      "conditional_ui": false,
      "purpose_ru": "Включает или отключает указанную возможность.",
      "source_line": 5500,
      "consumer_files": [
        "system/revolution.ocmod.xml",
        "catalog/view/theme/revolution/template/common/footer.twig",
        "catalog/view/theme/revolution/template/product/category.twig",
        "catalog/view/theme/revolution/template/product/manufacturer_info.twig",
        "catalog/view/theme/revolution/template/product/product.twig",
        "catalog/view/theme/revolution/template/product/search.twig",
        "catalog/view/theme/revolution/template/product/special.twig",
        "catalog/view/theme/revolution/template/revolution/revblog_blog.twig"
      ]
    },
    {
      "name": "revtheme_product_all[options_two_in_line]",
      "label_ru": "2 опции в ряду",
      "control": "radio",
      "format": "enum / boolean",
      "options": [
        {
          "value": "1",
          "label": "Да"
        },
        {
          "value": "0",
          "label": "Нет"
        }
      ],
      "default_evidence": "не задан в HTML",
      "validation_evidence": "Явная HTML-валидация не задана",
      "conditional_ui": false,
      "purpose_ru": "Управляет параметром «2 опции в ряду» в этом компоненте.",
      "source_line": 5511,
      "consumer_files": [
        "system/revolution.ocmod.xml",
        "catalog/view/theme/revolution/template/common/footer.twig",
        "catalog/view/theme/revolution/template/product/category.twig",
        "catalog/view/theme/revolution/template/product/manufacturer_info.twig",
        "catalog/view/theme/revolution/template/product/product.twig",
        "catalog/view/theme/revolution/template/product/search.twig",
        "catalog/view/theme/revolution/template/product/special.twig",
        "catalog/view/theme/revolution/template/revolution/revblog_blog.twig"
      ]
    },
    {
      "name": "revtheme_product_all[options_special]",
      "label_ru": "Акция действует на опции",
      "control": "radio",
      "format": "enum / boolean",
      "options": [
        {
          "value": "1",
          "label": "Да"
        },
        {
          "value": "0",
          "label": "Нет"
        }
      ],
      "default_evidence": "не задан в HTML",
      "validation_evidence": "Явная HTML-валидация не задана",
      "conditional_ui": false,
      "purpose_ru": "Управляет параметром «Акция действует на опции» в этом компоненте.",
      "source_line": 5522,
      "consumer_files": [
        "system/revolution.ocmod.xml",
        "catalog/view/theme/revolution/template/common/footer.twig",
        "catalog/view/theme/revolution/template/product/category.twig",
        "catalog/view/theme/revolution/template/product/manufacturer_info.twig",
        "catalog/view/theme/revolution/template/product/product.twig",
        "catalog/view/theme/revolution/template/product/search.twig",
        "catalog/view/theme/revolution/template/product/special.twig",
        "catalog/view/theme/revolution/template/revolution/revblog_blog.twig"
      ]
    },
    {
      "name": "revtheme_product_all[options_ravno_plus]",
      "label_ru": "Плюсовать цену у опций со знаком равно",
      "control": "radio",
      "format": "enum / boolean",
      "options": [
        {
          "value": "1",
          "label": "Да"
        },
        {
          "value": "0",
          "label": "Нет"
        }
      ],
      "default_evidence": "не задан в HTML",
      "validation_evidence": "Явная HTML-валидация не задана",
      "conditional_ui": false,
      "purpose_ru": "Управляет параметром «Плюсовать цену у опций со знаком равно» в этом компоненте.",
      "source_line": 5533,
      "consumer_files": [
        "system/revolution.ocmod.xml",
        "catalog/view/theme/revolution/template/common/footer.twig",
        "catalog/view/theme/revolution/template/product/category.twig",
        "catalog/view/theme/revolution/template/product/manufacturer_info.twig",
        "catalog/view/theme/revolution/template/product/product.twig",
        "catalog/view/theme/revolution/template/product/search.twig",
        "catalog/view/theme/revolution/template/product/special.twig",
        "catalog/view/theme/revolution/template/revolution/revblog_blog.twig"
      ]
    },
    {
      "name": "revtheme_product_all[option_f_auto]",
      "label_ru": "Автовыбор первой опции",
      "control": "radio",
      "format": "enum / boolean",
      "options": [
        {
          "value": "1",
          "label": "Да"
        },
        {
          "value": "0",
          "label": "Нет"
        }
      ],
      "default_evidence": "не задан в HTML",
      "validation_evidence": "Явная HTML-валидация не задана",
      "conditional_ui": false,
      "purpose_ru": "Управляет параметром «Автовыбор первой опции» в этом компоненте.",
      "source_line": 5544,
      "consumer_files": [
        "system/revolution.ocmod.xml",
        "catalog/view/theme/revolution/template/common/footer.twig",
        "catalog/view/theme/revolution/template/product/category.twig",
        "catalog/view/theme/revolution/template/product/manufacturer_info.twig",
        "catalog/view/theme/revolution/template/product/product.twig",
        "catalog/view/theme/revolution/template/product/search.twig",
        "catalog/view/theme/revolution/template/product/special.twig",
        "catalog/view/theme/revolution/template/revolution/revblog_blog.twig"
      ]
    },
    {
      "name": "revtheme_product_all[option_img_options]",
      "label_ru": "Изображения опций из списка опций",
      "control": "radio",
      "format": "enum / boolean",
      "options": [
        {
          "value": "1",
          "label": "Да"
        },
        {
          "value": "0",
          "label": "Нет"
        }
      ],
      "default_evidence": "не задан в HTML",
      "validation_evidence": "Явная HTML-валидация не задана",
      "conditional_ui": false,
      "purpose_ru": "Выбирает изображение, используемое этим компонентом.",
      "source_line": 5555,
      "consumer_files": [
        "system/revolution.ocmod.xml",
        "catalog/view/theme/revolution/template/common/footer.twig",
        "catalog/view/theme/revolution/template/product/category.twig",
        "catalog/view/theme/revolution/template/product/manufacturer_info.twig",
        "catalog/view/theme/revolution/template/product/product.twig",
        "catalog/view/theme/revolution/template/product/search.twig",
        "catalog/view/theme/revolution/template/product/special.twig",
        "catalog/view/theme/revolution/template/revolution/revblog_blog.twig"
      ]
    },
    {
      "name": "revtheme_product_all[options_buy]",
      "label_ru": "Заменить на опции с кнопкой купить",
      "control": "radio",
      "format": "enum / boolean",
      "options": [
        {
          "value": "1",
          "label": "Да"
        },
        {
          "value": "0",
          "label": "Нет"
        }
      ],
      "default_evidence": "не задан в HTML",
      "validation_evidence": "Явная HTML-валидация не задана",
      "conditional_ui": true,
      "purpose_ru": "Управляет параметром «Заменить на опции с кнопкой купить» в этом компоненте.",
      "source_line": 5569,
      "consumer_files": [
        "system/revolution.ocmod.xml",
        "catalog/view/theme/revolution/template/common/footer.twig",
        "catalog/view/theme/revolution/template/product/category.twig",
        "catalog/view/theme/revolution/template/product/manufacturer_info.twig",
        "catalog/view/theme/revolution/template/product/product.twig",
        "catalog/view/theme/revolution/template/product/search.twig",
        "catalog/view/theme/revolution/template/product/special.twig",
        "catalog/view/theme/revolution/template/revolution/revblog_blog.twig"
      ]
    },
    {
      "name": "revtheme_product_all[options_buy_optionname]",
      "label_ru": "Выводить название опций",
      "control": "radio",
      "format": "enum / boolean",
      "options": [
        {
          "value": "1",
          "label": "Да"
        },
        {
          "value": "0",
          "label": "Нет"
        }
      ],
      "default_evidence": "не задан в HTML",
      "validation_evidence": "Явная HTML-валидация не задана",
      "conditional_ui": false,
      "purpose_ru": "Задаёт отображаемый пользователю текст или заголовок.",
      "source_line": 5583,
      "consumer_files": [
        "system/revolution.ocmod.xml",
        "catalog/view/theme/revolution/template/common/footer.twig",
        "catalog/view/theme/revolution/template/product/category.twig",
        "catalog/view/theme/revolution/template/product/manufacturer_info.twig",
        "catalog/view/theme/revolution/template/product/product.twig",
        "catalog/view/theme/revolution/template/product/search.twig",
        "catalog/view/theme/revolution/template/product/special.twig",
        "catalog/view/theme/revolution/template/revolution/revblog_blog.twig"
      ]
    },
    {
      "name": "revtheme_product_all[options_buy_optionname_one]",
      "label_ru": "Выводить название опции вместо слова \"Опция\"",
      "control": "radio",
      "format": "enum / boolean",
      "options": [
        {
          "value": "1",
          "label": "Да"
        },
        {
          "value": "0",
          "label": "Нет"
        }
      ],
      "default_evidence": "не задан в HTML",
      "validation_evidence": "Явная HTML-валидация не задана",
      "conditional_ui": false,
      "purpose_ru": "Задаёт отображаемый пользователю текст или заголовок.",
      "source_line": 5597,
      "consumer_files": [
        "system/revolution.ocmod.xml",
        "catalog/view/theme/revolution/template/common/footer.twig",
        "catalog/view/theme/revolution/template/product/category.twig",
        "catalog/view/theme/revolution/template/product/manufacturer_info.twig",
        "catalog/view/theme/revolution/template/product/product.twig",
        "catalog/view/theme/revolution/template/product/search.twig",
        "catalog/view/theme/revolution/template/product/special.twig",
        "catalog/view/theme/revolution/template/revolution/revblog_blog.twig"
      ]
    },
    {
      "name": "revtheme_product_all[options_buy_foto]",
      "label_ru": "Выводить фото опции",
      "control": "radio",
      "format": "enum / boolean",
      "options": [
        {
          "value": "1",
          "label": "Да"
        },
        {
          "value": "0",
          "label": "Нет"
        }
      ],
      "default_evidence": "не задан в HTML",
      "validation_evidence": "Явная HTML-валидация не задана",
      "conditional_ui": false,
      "purpose_ru": "Управляет параметром «Выводить фото опции» в этом компоненте.",
      "source_line": 5611,
      "consumer_files": [
        "system/revolution.ocmod.xml",
        "catalog/view/theme/revolution/template/common/footer.twig",
        "catalog/view/theme/revolution/template/product/category.twig",
        "catalog/view/theme/revolution/template/product/manufacturer_info.twig",
        "catalog/view/theme/revolution/template/product/product.twig",
        "catalog/view/theme/revolution/template/product/search.twig",
        "catalog/view/theme/revolution/template/product/special.twig",
        "catalog/view/theme/revolution/template/revolution/revblog_blog.twig"
      ]
    },
    {
      "name": "revtheme_product_all[options_buy_model]",
      "label_ru": "Выводить модель опции",
      "control": "radio",
      "format": "enum / boolean",
      "options": [
        {
          "value": "1",
          "label": "Да"
        },
        {
          "value": "0",
          "label": "Нет"
        }
      ],
      "default_evidence": "не задан в HTML",
      "validation_evidence": "Явная HTML-валидация не задана",
      "conditional_ui": false,
      "purpose_ru": "Управляет параметром «Выводить модель опции» в этом компоненте.",
      "source_line": 5625,
      "consumer_files": [
        "system/revolution.ocmod.xml",
        "catalog/view/theme/revolution/template/common/footer.twig",
        "catalog/view/theme/revolution/template/product/category.twig",
        "catalog/view/theme/revolution/template/product/manufacturer_info.twig",
        "catalog/view/theme/revolution/template/product/product.twig",
        "catalog/view/theme/revolution/template/product/search.twig",
        "catalog/view/theme/revolution/template/product/special.twig",
        "catalog/view/theme/revolution/template/revolution/revblog_blog.twig"
      ]
    },
    {
      "name": "revtheme_product_all[options_buy_quantity]",
      "label_ru": "Выводить остаток опций",
      "control": "radio",
      "format": "enum / boolean",
      "options": [
        {
          "value": "1",
          "label": "Да"
        },
        {
          "value": "0",
          "label": "Нет"
        }
      ],
      "default_evidence": "не задан в HTML",
      "validation_evidence": "Явная HTML-валидация не задана",
      "conditional_ui": false,
      "purpose_ru": "Управляет параметром «Выводить остаток опций» в этом компоненте.",
      "source_line": 5639,
      "consumer_files": [
        "system/revolution.ocmod.xml",
        "catalog/view/theme/revolution/template/common/footer.twig",
        "catalog/view/theme/revolution/template/product/category.twig",
        "catalog/view/theme/revolution/template/product/manufacturer_info.twig",
        "catalog/view/theme/revolution/template/product/product.twig",
        "catalog/view/theme/revolution/template/product/search.twig",
        "catalog/view/theme/revolution/template/product/special.twig",
        "catalog/view/theme/revolution/template/revolution/revblog_blog.twig"
      ]
    },
    {
      "name": "revtheme_product_all[options_buy_click]",
      "label_ru": "Опции кликабельны",
      "control": "radio",
      "format": "enum / boolean",
      "options": [
        {
          "value": "1",
          "label": "Да"
        },
        {
          "value": "0",
          "label": "Нет"
        }
      ],
      "default_evidence": "не задан в HTML",
      "validation_evidence": "Явная HTML-валидация не задана",
      "conditional_ui": false,
      "purpose_ru": "Управляет параметром «Опции кликабельны» в этом компоненте.",
      "source_line": 5653,
      "consumer_files": [
        "system/revolution.ocmod.xml",
        "catalog/view/theme/revolution/template/common/footer.twig",
        "catalog/view/theme/revolution/template/product/category.twig",
        "catalog/view/theme/revolution/template/product/manufacturer_info.twig",
        "catalog/view/theme/revolution/template/product/product.twig",
        "catalog/view/theme/revolution/template/product/search.twig",
        "catalog/view/theme/revolution/template/product/special.twig",
        "catalog/view/theme/revolution/template/revolution/revblog_blog.twig"
      ]
    }
  ],
  "relations": [
    {
      "relation": "part_of",
      "target": "revolution.settings.product",
      "url": "/settings/product/",
      "why": "Родительский раздел «Карточка товара».",
      "when_to_follow": "Нужен обзор соседних компонентов этого раздела."
    },
    {
      "relation": "apply_with",
      "target": "revolution.workflow.safe-change",
      "url": "/getting-started/safe-workflow",
      "why": "Безопасное изменение настроек и откат.",
      "when_to_follow": "Перед изменением рабочего магазина."
    },
    {
      "relation": "troubleshoot_with",
      "target": "revolution.troubleshooting.cache",
      "url": "/troubleshooting/cache",
      "why": "Сохранённые настройки могут быть скрыты кэшем шаблона, модификаторов или браузера.",
      "when_to_follow": "Изменение сохранено, но не видно на витрине."
    },
    {
      "relation": "related_by_task",
      "target": "revolution.settings.additional.checkout",
      "url": "/settings/additional/checkout",
      "why": "Общие задачи: commerce, product, visual.",
      "when_to_follow": "Вопрос затрагивает одновременно «Опции товара» и «Страница оформления заказа»."
    },
    {
      "relation": "related_by_task",
      "target": "revolution.settings.appearance.catalog",
      "url": "/settings/appearance/catalog",
      "why": "Общие задачи: commerce, product, visual.",
      "when_to_follow": "Вопрос затрагивает одновременно «Опции товара» и «Внешний вид каталога»."
    },
    {
      "relation": "related_by_task",
      "target": "revolution.settings.catalog.general",
      "url": "/settings/catalog/general",
      "why": "Общие задачи: commerce, product, visual.",
      "when_to_follow": "Вопрос затрагивает одновременно «Опции товара» и «Общие настройки каталога»."
    },
    {
      "relation": "related_by_task",
      "target": "revolution.settings.home.product-slider-1",
      "url": "/settings/home/product-slider-1",
      "why": "Общие задачи: commerce, product, visual.",
      "when_to_follow": "Вопрос затрагивает одновременно «Опции товара» и «Произвольный слайдер товаров 1»."
    }
  ],
  "uncertainties": [
    "Точная серверная валидация и реализация сохранения скрыты ionCube.",
    "Пустое HTML-значение не считается доказательством фактического default после установки."
  ]
}
