<?php

namespace Autogedal\AutogedalHelper\Model;

class Popup extends \MageKey\AdcPopup\CustomerData\Popup
{
    protected function getProductList(array $affectedItems)
    {
        $quote = $this->getQuote();
        foreach ($quote->getItems() as $item) {
            if (in_array($item->getId(), $affectedItems)) {
                $product = $item->getProduct();
                $productCollection = $product->getCrossSellProductCollection();

                $productList = $this->getProductListData($productCollection);

                return $productList;
            }
        }
    }
}
