Browse Source

Correctifs page produits

feature/export_comptable
Fab 4 years ago
parent
commit
d3eec5cdc7
2 changed files with 18 additions and 0 deletions
  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 View File

@@ -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 View File

@@ -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>

Loading…
Cancel
Save