mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 06:46:08 -06:00
#4966 Options value editing - Text input
This commit is contained in:
parent
87317d0cd1
commit
6f0486adaf
@ -396,4 +396,5 @@ return [
|
|||||||
'page' => 'Page',
|
'page' => 'Page',
|
||||||
'undefined_page' => 'Undefined Page',
|
'undefined_page' => 'Undefined Page',
|
||||||
'id' => 'ID',
|
'id' => 'ID',
|
||||||
|
'custom_field' => 'Custom Field',
|
||||||
];
|
];
|
||||||
|
|||||||
@ -25,7 +25,7 @@ class OptionConfigurationFormFields
|
|||||||
|
|
||||||
foreach ($options as $option)
|
foreach ($options as $option)
|
||||||
{
|
{
|
||||||
if($optionValue = $productoptionsValueRepository->getWithOptionsId([$option->id]))
|
if($productoptionsValueRepository->getWithOptionsId([$option->id]))
|
||||||
{
|
{
|
||||||
$options_fields['option-'.$option->getId()] = [
|
$options_fields['option-'.$option->getId()] = [
|
||||||
'type' => 'anomaly.field_type.select',
|
'type' => 'anomaly.field_type.select',
|
||||||
@ -44,7 +44,7 @@ class OptionConfigurationFormFields
|
|||||||
'type' => 'anomaly.field_type.text',
|
'type' => 'anomaly.field_type.text',
|
||||||
'class' => 'form-control product-custom-fields',
|
'class' => 'form-control product-custom-fields',
|
||||||
'required' => false,
|
'required' => false,
|
||||||
'label' => 'Custom',
|
'label' => trans('visiosoft.module.advs::field.custom_field'),
|
||||||
];
|
];
|
||||||
|
|
||||||
$fields = array_merge($options_fields, ['price', 'currency', 'stock']);
|
$fields = array_merge($options_fields, ['price', 'currency', 'stock']);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user