[Решено] Доп. поле даты в свойствах товара

Всем привет!
Добавил через плагин поле даты:

msproductdata.js:
miniShop2.plugin.pluginname = {
	getFields: function(config) {
		return {
			datestart: {xtype: 'minishop2-xdatetime', value: config.record.datestart, description: '<b>[[+datestart]]</b><br />'+_('ms2_product_datestart_help')},
		}
	}
	,getColumns: function() {
		return {
			datestart: {width:50, sortable:false, editor: {xtype:'minishop2-xdatetime', name: 'datestart'}},
		}
	}
};
msproductdata.map.inc.php такой:
<?php
return array(
	'fields' => array(
		'datestart' => 0
	)
	,'fieldMeta' => array(
		'datestart' => array(
			'dbtype' => 'int'
			,'precision' => '20'
			,'phptype' => 'timestamp'
			,'null' => false
			,'default' => 0			
		)
	)
	,'indexes' => array(
		'datestart' => array (
			'alias' => 'datestart'
			,'primary' => false
			,'unique' => false
			,'type' => 'BTREE'
			,'columns' => array (
				'action' => array (
					'length' => ''
					,'collation' => 'A'
					,'null' => false
				)
			)
		)
	)
);
Klike
24 мая 2016, 18:08
modx.pro
2
1 475
0

Комментарии: 2

Klike
25 мая 2016, 07:35
0
Никто не знает?)
    Klike
    25 мая 2016, 14:42
    0
    Спасибо всем, решение в теме
      Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.
      2