We were using Magento 2.3.5 version.
Question: associated product qty are out of stock, so configurable product how to disable or redirect 302 pages?
Thanks in advanced.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communitySEO product error getting like: Either "offers", "review", or "aggregate rating" should be specified.
Thant means product price, review, and aggregate rating does not mention on the product => associated product qty are out of stock, so configurable product price is not getting that why this error is shown.
There are two ways to solve this issue.
I have used it on the second way. /Magento_Catalog/templates/product/view/form.phtml
<p>
<?PHP
if (!$_product->isSaleable()){
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$redirect = $objectManager->get('\Magento\Framework\App\Response\Http');
$storeManager = $objectManager->get('\Magento\Store\Model\StoreManagerInterface');
$baseurl= $storeManager->getStore()->getBaseUrl();
$redirect->setRedirect($baseurl);
}
?>
</p>