/**
  * Get prices on category page
  *
  * @param FixtureInterface $product
  * @param array $actualPrices
  * @return array
  */
 protected function getCategoryPrice(FixtureInterface $product, $actualPrices)
 {
     $priceBlock = $this->catalogCategoryView->getWeeeListProductBlock()->getProductItem($product)->getPriceBlock();
     $actualPrices['category_price'] = $priceBlock->getPrice();
     $actualPrices['fpt_category'] = $priceBlock->getFptPrice();
     $actualPrices['fpt_total_category'] = $priceBlock->getFinalPrice();
     return $actualPrices;
 }
Exemplo n.º 2
0
 /**
  * Get prices on category page
  *
  * @param string $productName
  * @param array $actualPrices
  * @return array
  */
 protected function getCategoryPrice($productName, $actualPrices)
 {
     $productBlock = $this->catalogCategoryView->getListProductBlock();
     $actualPrices['category_price'] = $productBlock->getProductPriceBlock($productName)->getEffectivePrice();
     $productWeeeBlock = $this->catalogCategoryView->getWeeeListProductBlock();
     $actualPrices['fpt_category'] = $productWeeeBlock->getProductFptBlock($productName, $this->fptLabel)->getFpt();
     $actualPrices['fpt_total_category'] = $productWeeeBlock->getProductFptBlock($productName, $this->fptLabel)->getFptTotal();
     return $actualPrices;
 }
Exemplo n.º 3
0
 /**
  * Get prices on category page.
  *
  * @return array
  */
 protected function getCategoryPrice()
 {
     $prices = [];
     $this->cmsIndex->open();
     $this->cmsIndex->getTopmenu()->selectCategory($this->product->getCategoryIds()[0]);
     $priceBlock = $this->catalogCategoryView->getWeeeListProductBlock()->getProductItem($this->product)->getPriceBlock();
     foreach ($this->expectedPrices['category'] as $key => $type) {
         $prices[$key] = $this->getPrice($priceBlock, $key);
     }
     return $prices;
 }