44 $this->_fileResponseFactory = $fileResponseFactory;
46 parent::__construct($context);
58 $option = $this->_objectManager->create(
61 $this->getRequest()->getParam(
'id')
66 $resultForward->forward(
'noroute');
67 return $resultForward;
71 if (strpos(
$option->getCode(), \Magento\Catalog\Model\Product\Type\AbstractType::OPTION_PREFIX) === 0) {
73 \
Magento\Catalog\Model\Product\Type\AbstractType::OPTION_PREFIX,
78 $resultForward->forward(
'noroute');
79 return $resultForward;
89 $resultForward->forward(
'noroute');
90 return $resultForward;
95 $secretKey = $this->getRequest()->getParam(
'key');
97 if ($secretKey ==
$info[
'secret_key']) {
98 $this->_fileResponseFactory->create(
100 [
'value' =>
$info[
'quote_path'],
'type' =>
'filename'],
105 }
catch (\Exception $e) {
106 $resultForward->forward(
'noroute');
107 return $resultForward;
foreach( $_productCollection as $_product)() ?>" class $info
__construct(Action\Context $context, \Magento\Framework\App\Response\Http\FileFactory $fileResponseFactory, Json $json=null)