private function fillProduct($order) { $productModel = new Product(); $productModel->fillFromArray($order); /* if($this->ship_with && $productModel->product_shipping_sku) $productModel->product_sku = $productModel->product_shipping_sku; */ if (!$order['product_shipping_sku'] && $order['status'] == 'ok' && !$this->_isMainProduct) { array_unshift($this->_productModels, $productModel); $this->_isMainProduct = true; } else { array_push($this->_productModels, $productModel); } $this->_countProduct++; if ($this->_countProduct > self::$_maxCountProduct) { self::$_maxCountProduct = $this->_countProduct; } $shippingModel = new Shipping(); $shippingModel->fillFromEnterArray($order); array_push($this->_shippingModels, $shippingModel); }