MsAddField
No description available
Install / Use
/learn @webnitros/MsAddFieldREADME
Компонент добавляет поля в таблицу ms2_products (всего 7 видов полей). Так же расширяет карту полей объекта msProductData и выводит поле в карточке товара автоматически.
Скачать можно отсюда https://yadi.sk/d/xzJNgfk28ZCdpA обновление от 15.10

Типы полей которые может создавать компонент
public $metaData = array(
'price' => array(
'title' => 'Цена (0.00)',
'fieldMeta' => array(
'default' => '0.0',
'dbtype' => 'decimal',
'precision' => '12,2',
'phptype' => 'float',
'null' => true,
),
'xtype' => array(
'xtype' => 'numberfield',
'decimalPrecision' => 2
)
),
'decimal' => array(
'title' => 'Вес и другие размеры (0.000)',
'fieldMeta' => array(
'default' => '0.000',
'dbtype' => 'decimal',
'precision' => '13,3',
'phptype' => 'float',
'null' => true,
),
'xtype' => array(
'xtype' => 'numberfield',
'decimalPrecision' => 3
)
),
'numberfield' => array(
'title' => 'Цифры',
'fieldMeta' => array(
'default' => 0,
'dbtype' => 'int',
'precision' => '10',
'attributes' => 'unsigned',
'phptype' => 'integer',
'null' => true,
),
'xtype' => array(
'xtype' => 'numberfield',
)
),
'textfield' => array(
'title' => 'Текст до 255 символов',
'fieldMeta' => array(
'default' => null,
'dbtype' => 'varchar',
'precision' => '255',
'phptype' => 'string',
'null' => true,
),
'xtype' => array(
'xtype' => 'textfield',
)
),
'tinyint' => array(
'title' => 'Болева (Да или Нет)',
'fieldMeta' => array(
'default' => 0,
'dbtype' => 'tinyint',
'precision' => '1',
'phptype' => 'integer',
'null' => false,
),
'xtype' => array(
'xtype' => 'xcheckbox',
'inputValue' => 1,
'checked' => 'parseInt(config.record.new)',
)
),
'json' => array(
'title' => 'Множественные значения',
'fieldMeta' => array(
'dbtype' => 'text',
'phptype' => 'json',
'null' => true,
),
'xtype' => array(
'xtype' => 'minishop2-combo-options',
)
),
'textarea' => array(
'title' => 'Текстовое значение большое',
'fieldMeta' => array(
'dbtype' => 'text',
'phptype' => 'string',
'null' => true,
),
'xtype' => array(
'xtype' => 'textarea',
)
),
);
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
