Browse Source

[Backend] Evol déclinaisons

feature/tableau_edition_avancee
Fab 4 years ago
parent
commit
3f7721218e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ShopBundle/Services/ProductFamilyUtils.php

+ 1
- 1
ShopBundle/Services/ProductFamilyUtils.php View File



foreach ($entity->getProducts() as $product) { foreach ($entity->getProducts() as $product) {
if($entity->getProductsQuantityAsTitle() && $product->getStatus()>=1){ if($entity->getProductsQuantityAsTitle() && $product->getStatus()>=1){
$product->setTitle($product->getQuantityInherited().$product->getUnitInherited()->getWording());
$product->setTitle(str_replace('.', ',',$product->getQuantityInherited()).$product->getUnitInherited()->getWording());
} }


$product->setProductFamily($entity); $product->setProductFamily($entity);

Loading…
Cancel
Save