Quellcode durchsuchen

Correctifs page produits

feature/export_comptable
Fab vor 4 Jahren
Ursprung
Commit
d3eec5cdc7
2 geänderte Dateien mit 18 neuen und 0 gelöschten Zeilen
  1. +17
    -0
      ShopBundle/Model/ProductFamily.php
  2. +1
    -0
      ShopBundle/Resources/views/backend/productfamily/panel_price.html.twig

+ 17
- 0
ShopBundle/Model/ProductFamily.php Datei anzeigen

@@ -50,6 +50,11 @@ abstract class ProductFamily extends AbstractDocumentEntity implements ProductPr
*/
protected $productsType;

/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
protected $quantityLabel;

/**
* @ORM\OneToMany(targetEntity="Lc\ShopBundle\Context\ProductInterface", mappedBy="productFamily", orphanRemoval=true, cascade={"persist"})
*/
@@ -255,6 +260,18 @@ abstract class ProductFamily extends AbstractDocumentEntity implements ProductPr
return $this;
}

public function getQuantityLabel(): ?string
{
return $this->quantityLabel;
}

public function setQuantityLabel(?string $quantityLabel): self
{
$this->quantityLabel = $quantityLabel;

return $this;
}

/**
* @return Collection|ProductInterface[]
*/

+ 1
- 0
ShopBundle/Resources/views/backend/productfamily/panel_price.html.twig Datei anzeigen

@@ -10,6 +10,7 @@
</div>
<div class="col-12" v-show="activeProducts == true">
{{ form_row(form.productsType) }}
{{ form_row(form.quantityLabel) }}

{{ form_row(form.behaviorAddToCart) }}
</div>

Laden…
Abbrechen
Speichern