return $arrayProductsGroupByTitle; | return $arrayProductsGroupByTitle; | ||||
} | } | ||||
public function getOriginProduct() | |||||
{ | |||||
$products = $this->getProducts() ; | |||||
foreach($products as $product) { | |||||
if($product->getStatus() == 1 && $product->getOriginProduct()) { | |||||
return $product ; | |||||
} | |||||
} | |||||
} | |||||
} | } |