13 use Magento\Framework\Controller\Result\ForwardFactory;
56 parent::__construct($context);
74 $quoteItemOptionId = $this->
getRequest()->getParam(
'id');
76 $option = $this->_objectManager->create(
77 \
Magento\Quote\Model\Quote\Item\Option::class
78 )->load($quoteItemOptionId);
80 $resultForward = $this->resultForwardFactory->create();
83 return $resultForward->forward(
'noroute');
97 \
Magento\Catalog\Model\Product\Option::class
102 return $resultForward->forward(
'noroute');
106 $info = $this->serializer->unserialize(
$option->getValue());
108 return $resultForward->forward(
'noroute');
110 $this->download->downloadFile(
$info);
111 }
catch (\Exception $e) {
112 return $resultForward->forward(
'noroute');
__construct(Context $context, ForwardFactory $resultForwardFactory, \Magento\Sales\Model\Download $download, \Magento\Framework\Unserialize\Unserialize $unserialize, \Magento\Framework\Serialize\Serializer\Json $serializer=null)
foreach( $_productCollection as $_product)() ?>" class $info