PrestaShop 1.7 中文字颜色表单的背景问题



我在 Ps 1.7 中使用辅助表单添加一个类型颜色"颜色选择器",默认情况下为空,字段背景为背景色:rgb(0, 0, 0(; 由内联添加,所以我无法理解这是从哪里来的,我想在默认情况下字段为空时将其更改为不同的颜色。

array(
'type' => 'color',
'label' => $this->trans('example'),
'name' => 'example',
'hint' => $this->trans('example text.'),
'class' => 'text-center',
),

图像示例

您可以在tpl_vars中设置颜色选择器的值,例如

$helperForm->tpl_vars = array(
'fields_value' => array(
'nameofmycolorpicker' => '#3399ff',
),
);

最新更新