/** * Get cart prices * * @param CatalogProductSimple $product * @param array $actualPrices * @return array */ protected function getCartPrice(CatalogProductSimple $product, array $actualPrices) { $this->checkoutCart->open(); $productItem = $this->checkoutCart->getCartBlock()->getCartItem($product); $productWeeeItem = $this->checkoutCart->getWeeeCartBlock()->getCartItem($product); $actualPrices['cart_item_price'] = $productItem->getPrice(); $actualPrices['cart_item_fpt'] = $productWeeeItem->getPriceFptBlock()->getFpt(); $actualPrices['cart_item_fpt_total'] = $productWeeeItem->getPriceFptBlock()->getFptTotal(); $actualPrices['cart_item_subtotal'] = $productItem->getSubtotalPrice(); $actualPrices['cart_item_subtotal_fpt'] = $productWeeeItem->getSubtotalFptBlock()->getFpt(); $actualPrices['cart_item_subtotal_fpt_total'] = $productWeeeItem->getSubtotalFptBlock()->getFptTotal(); $actualPrices['grand_total'] = $this->checkoutCart->getTotalsBlock()->getGrandTotal(); $actualPrices['total_fpt'] = $this->checkoutCart->getWeeeTotalsBlock()->getFptBlock()->getTotalFpt(); return $actualPrices; }