We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d48860 commit c07d526Copy full SHA for c07d526
Controller/Index/View.php
@@ -100,6 +100,10 @@ public function execute()
100
101
try {
102
$product = $this->_initProduct();
103
+ if (!$product) {
104
+ echo __('The product with ID %1 is out of stock or not visible individually', $productId);
105
+ return;
106
+ }
107
// $page = $this->resultPageFactory->create(false, ['isIsolated' => true]);
108
$page = $this->resultPageFactory->create();
109
// $page->addHandle('catalog_product_view');
0 commit comments