|
|
|
|
|
|
|
|
return $count; |
|
|
return $count; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function orderProductsByParentCategory($orderShop = null) |
|
|
|
|
|
|
|
|
public function getOrderProductsByParentCategory($orderShop = null) |
|
|
{ |
|
|
{ |
|
|
$categoriesArray = []; |
|
|
$categoriesArray = []; |
|
|
foreach ($orderShop->getOrderProducts() as $orderProduct) { |
|
|
foreach ($orderShop->getOrderProducts() as $orderProduct) { |
|
|
|
|
|
|
|
|
return $categoriesArray; |
|
|
return $categoriesArray; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function getDatasSummary($orderShop = null) |
|
|
|
|
|
|
|
|
public function getOrderDatas($order = null) |
|
|
{ |
|
|
{ |
|
|
if(!$orderShop) { |
|
|
|
|
|
$orderShop = $this->getOrderShopCurrent() ; |
|
|
|
|
|
|
|
|
if(!$order) { |
|
|
|
|
|
$order = $this->getOrderShopCurrent() ; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$data = [] ; |
|
|
$data = [] ; |
|
|
$data['count'] = $this->countQuantities($orderShop) ; |
|
|
|
|
|
$data['total_with_tax'] = $this->priceUtils->getTotalWithTaxAndReduction($orderShop) ; |
|
|
|
|
|
$data['categories'] = $this->orderProductsByParentCategory($orderShop) ; |
|
|
|
|
|
|
|
|
$data['order'] = $order ; |
|
|
|
|
|
$data['count'] = $this->countQuantities($order) ; |
|
|
|
|
|
$data['total_with_tax'] = $this->priceUtils->getTotalWithTaxAndReduction($order) ; |
|
|
|
|
|
$data['order_products_by_category'] = $this->getOrderProductsByParentCategory($order) ; |
|
|
|
|
|
|
|
|
return $data ; |
|
|
return $data ; |
|
|
} |
|
|
} |