Browse Source

Ajout du champ behaviorAddToCart

reduction
Fab 4 years ago
parent
commit
172fcefbe2
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      ShopBundle/Controller/Admin/ProductFamilyController.php

+ 11
- 0
ShopBundle/Controller/Admin/ProductFamilyController.php View File

@@ -69,6 +69,17 @@ class ProductFamilyController extends AdminController
'expanded' => true
));

$formBuilder->add('behaviorAddToCart', ChoiceType::class, array(
'empty_data' => 'by-product-family',
'choices' => array(
'field.ProductFamily.behaviorAddToCartOptions.simple' => 'simple',
'field.ProductFamily.behaviorAddToCartOptions.multiple' => 'multiple'
),
'translation_domain' => 'lcshop',
'multiple' => false,
'expanded' => true
));

$formBuilder->add('propertyOrganicLabel', ChoiceType::class, array(
'choices' => array(
'field.ProductFamily.organicLabelOptions.ab' => 'ab',

Loading…
Cancel
Save