|
|
|
|
|
|
|
|
|
|
|
|
|
|
case self::BEHAVIOR_COUNT_STOCK_BY_PRODUCT : |
|
|
case self::BEHAVIOR_COUNT_STOCK_BY_PRODUCT : |
|
|
|
|
|
|
|
|
foreach($this->getProducts() as $product) { |
|
|
|
|
|
|
|
|
foreach($this->getProductsOnline() as $product) { |
|
|
$availableQuantity += $product->getAvailableQuantityInherited() ; |
|
|
$availableQuantity += $product->getAvailableQuantityInherited() ; |
|
|
} |
|
|
} |
|
|
break ; |
|
|
break ; |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
if ($this->getActiveProducts()) { |
|
|
if ($this->getActiveProducts()) { |
|
|
$arrayCountProducts = []; |
|
|
$arrayCountProducts = []; |
|
|
$products = $this->getProducts(); |
|
|
|
|
|
|
|
|
$products = $this->getProductsOnline(); |
|
|
|
|
|
|
|
|
foreach ($products as $product) { |
|
|
foreach ($products as $product) { |
|
|
$titleProduct = $product->getTitleInherited(); |
|
|
$titleProduct = $product->getTitleInherited(); |
|
|
|
|
|
|
|
|
public function getProductsGroupByTitle() |
|
|
public function getProductsGroupByTitle() |
|
|
{ |
|
|
{ |
|
|
$arrayProductsGroupByTitle = []; |
|
|
$arrayProductsGroupByTitle = []; |
|
|
$products = $this->getProducts(); |
|
|
|
|
|
|
|
|
$products = $this->getProductsOnline(); |
|
|
|
|
|
|
|
|
foreach ($products as $product) { |
|
|
foreach ($products as $product) { |
|
|
if($product->getStatus() == 1) { |
|
|
if($product->getStatus() == 1) { |