Sfoglia il codice sorgente

[Frontend] Correctif originProduct

feature/export_comptable
Guillaume 4 anni fa
parent
commit
3b82c5ca18
1 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  1. +10
    -0
      ShopBundle/Model/ProductFamily.php

+ 10
- 0
ShopBundle/Model/ProductFamily.php Vedi File

@@ -813,4 +813,14 @@ abstract class ProductFamily extends AbstractDocumentEntity implements ProductPr
return false;
}
}

public function hasOneProductOnline()
{
if( ($this->getActiveProducts() && count($this->getProductsOnline()) > 0)
|| (!$this->getActiveProducts() && $this->getOriginProduct())){
return true ;
}

return false ;
}
}

Loading…
Annulla
Salva