Want to redirect for the products who are out of stock to custom url
Had tried below url but it did not helped https://stackoverflow.com/questions/4824072/magento-out-of-stock-product-seo-problem
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 communityWant to redirect for the products who are out of stock to custom url
Had tried below url but it did not helped https://stackoverflow.com/questions/4824072/magento-out-of-stock-product-seo-problem
You need to overide this method
https://magento.stackexchange.com/a/86501/70343
Check stock with something like this
https://magento.stackexchange.com/a/97952/70343
Then redirect using something like this