/** * @constructor * @param ObjectManager $objectManager * @param CheckoutOnepage $checkoutOnepage * @param CheckoutOnepageSuccess $checkoutOnepageSuccess * @param OrderView $orderView */ public function __construct(ObjectManager $objectManager, CheckoutOnepage $checkoutOnepage, CheckoutOnepageSuccess $checkoutOnepageSuccess, OrderView $orderView) { parent::__construct($objectManager); $this->checkoutOnepage = $checkoutOnepage; $this->checkoutOnepageSuccess = $checkoutOnepageSuccess; $this->orderView = $orderView; }
/** * Unset category and product page expected prices. * * @param array $prices * @return array */ protected function preparePrices(array $prices) { $generalPrices = parent::preparePrices($prices); $categoryPrices = array_intersect_key($prices, array_flip($this->categoryPrices)); $productPrices = array_intersect_key($prices, array_flip($this->productPrices)); return array_merge($generalPrices, $categoryPrices, $productPrices); }