瀏覽代碼

Ajout du champ behaviorAddToCart

reduction
Fab 4 年之前
父節點
當前提交
172fcefbe2
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. +11
    -0
      ShopBundle/Controller/Admin/ProductFamilyController.php

+ 11
- 0
ShopBundle/Controller/Admin/ProductFamilyController.php 查看文件

@@ -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…
取消
儲存