servetsarap Posted August 15, 2016 Share Posted August 15, 2016 Hello, When I disable a product and choose 404 redirect for that product, it only shows a white page. Example: http://cosmedrome.com/tr/16841-eva-lola-dress-powder-pink-9707-2.html (the product is currently disabled)Similarly, when a user try to view a disabled category it shows a white screen, too. Example: http://cosmedrome.com/tr/1204-elektronik (the category is currently disabled)How can I correct it? Regards, Link to comment Share on other sites More sharing options...
vekia Posted August 15, 2016 Share Posted August 15, 2016 hello, - how you defined this 404 redirect? Link to comment Share on other sites More sharing options...
servetsarap Posted August 15, 2016 Author Share Posted August 15, 2016 Hello vekia, I choose no redirect at the product page. I have tried to check 404 page with random link like www.cosmedrome.com/asdasdas and it works. But it doesnt work for products and categories. Link to comment Share on other sites More sharing options...
vekia Posted August 16, 2016 Share Posted August 16, 2016 okay i see it now and i understand what you're trying to achieve. do you use some override of ProductController.php ? especially init() function ? Link to comment Share on other sites More sharing options...
servetsarap Posted August 16, 2016 Author Share Posted August 16, 2016 (edited) I'm not good at coding so I didn't edit these files but I'm not sure if a module can create an override. 301 and 302 redirects are working but not 404 I'm not sure if I have done it right but I have checked the public html/override/controllers/front and there is no override file named ProductController.php.. There is only CMScontroller.php file Edited August 16, 2016 by servetsarap (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now