Преглед на файлове

Compatibilité frontend : adaptations

reduction
Guillaume преди 4 години
родител
ревизия
a2fa505810
променени са 3 файла, в които са добавени 3 реда и са изтрити 4 реда
  1. +1
    -1
      ShopBundle/Controller/Admin/ProductFamilyController.php
  2. +1
    -2
      ShopBundle/Model/ProductFamily.php
  3. +1
    -1
      ShopBundle/Resources/translations/lcshop.fr.yaml

+ 1
- 1
ShopBundle/Controller/Admin/ProductFamilyController.php Целия файл

@@ -69,7 +69,7 @@ class ProductFamilyController extends AdminController

$formBuilder->add('propertyOrganicLabel', ChoiceType::class, array(
'choices' => array(
'field.ProductFamily.organicLabelOptions.bio' => 'by-quantity',
'field.ProductFamily.organicLabelOptions.ab' => 'ab',
'field.ProductFamily.organicLabelOptions.natureProgres' => 'nature-progres',
'field.ProductFamily.organicLabelOptions.hVE' => 'hve'
),

+ 1
- 2
ShopBundle/Model/ProductFamily.php Целия файл

@@ -362,10 +362,9 @@ abstract class ProductFamily extends AbstractDocumentEntity implements ProductPr

public function isPropertyNoveltyOnline(): ?bool
{

if($this->getPropertyNoveltyExpirationDate()) {
$now = new \DateTime() ;
if($now <= $this->getNoveltyExpirationDate()) {
if($now <= $this->getPropertyNoveltyExpirationDate()) {
return true ;
}
}

+ 1
- 1
ShopBundle/Resources/translations/lcshop.fr.yaml Целия файл

@@ -109,7 +109,7 @@ field:
byProductFamily: Gérer le stock par produit (à l'unité)
byProduct: Gérer le stock par déclainaison
organicLabelOptions:
bio: Agriculture biologique
ab: Agriculture biologique
hVE: Haute valeur environnementale
natureProgres: Nature & progrès
behaviorExpirationDate: Gèrer

Loading…
Отказ
Запис