Browse Source

[Frontend] Correctif originProduct

feature/export_comptable
Guillaume 4 years ago
parent
commit
3b82c5ca18
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      ShopBundle/Model/ProductFamily.php

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

return false; return false;
} }
} }

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

return false ;
}
} }

Loading…
Cancel
Save