Kaynağa Gözat

translate type de livraison dans l'index

packProduct
Charly 3 yıl önce
ebeveyn
işleme
49917b4723
2 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. +2
    -1
      Definition/Field/Order/OrderShopFieldDefinition.php
  2. +1
    -0
      Resources/views/admin/order/field/delivery_type.html.twig

+ 2
- 1
Definition/Field/Order/OrderShopFieldDefinition.php Dosyayı Görüntüle

@@ -71,7 +71,8 @@ class OrderShopFieldDefinition extends AbstractFieldDefinition
->setCustomOption('filter_on', 'cycleNumber'),
'cycleDeliveryId' => IntegerField::new('cycleDeliveryId')->setSortable(true),
'cycleId' => IntegerField::new('cycleId')->setSortable(true),
'deliveryType' => Field::new('deliveryType')->setSortable(true)
'deliveryType' => TextField::new('deliveryType')->setSortable(true)
->setTemplatePath('@LcCaracole/admin/order/field/delivery_type.html.twig')
->setCustomOption('filter_fqcn', OrderShopOrderDeliveryTypeFilter::class),
//->setTemplatePath('@LcShop/backend/default/field/options_translatable.html.twig'),
'reference' => TextField::new('reference')->setSortable(true),

+ 1
- 0
Resources/views/admin/order/field/delivery_type.html.twig Dosyayı Görüntüle

@@ -0,0 +1 @@
{{ field.value|sov_trans_admin_choice('deliveryType', 'OrderShop') }}

Yükleniyor…
İptal
Kaydet