Minishop2 - msOption add field style "color" or "tags"
Adding a field to Minishop2 I followed this article:
Docu
But I have problems to get it work like the option fields «color» or «tags».
Is
Or something in the map-file
Fabian
Docu
But I have problems to get it work like the option fields «color» or «tags».
Is
xtype: 'minishop2-combo-autocomplete',
wrong?Or something in the map-file
, 'fieldMeta' => array(
'material' => array(
'dbtype' => 'text',
'precision' => '255',
'phptype' => 'string',
'null' => true,
'default' => NULL
Every help is appreciated.Fabian
Комментарии: 3
Fix map-file, try to replace this:
'phptype' => 'string',
with, 'phptype' => 'json'
it's work for me.
You need to use
And xPDO map should look like
All this you can find in miniShop2 sources.
xtype: 'minishop2-combo-options',
And xPDO map should look like
'fieldMeta' => array (
'material' => array (
'dbtype' => 'text',
'phptype' => 'json',
'null' => true,
)
),
All this you can find in miniShop2 sources.
Thank both of you.
Works perfect!
Works perfect!
Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.