dellhph Posted January 3, 2018 Share Posted January 3, 2018 (edited) I have a problem and need some guidance to fix it. Currently we have a 404 page which is the following one: The thing is that when a product is not found that page shows correctly but when there is some other object not found other errors are shown. This happends with: Categories Manufacturers CMS Pages Suppliers Etc We are using Prestashop 1.6 Several examples: NOTE: The language is mixed due to URLS used to get those errors but are correctly shown in each language as it should. The problem is just that it does not redirect to the 404 default template. Thank you very much in advance! Edited January 3, 2018 by dellhph Added prestashop version (see edit history) Link to comment Share on other sites More sharing options...
SmartPlugs Posted January 3, 2018 Share Posted January 3, 2018 Hi, When a product is not found the ProductController send a 404 code and display the error message in the product template. As the same behavior is used for CMS, category and other objects, 404 are shown by different templates. If you want to avoid this (unify so) you could develop a module hooked on actionDispatcher and that changes the current controller for the real 404 one (yes it exists!) before ProductController, CMSController etc are fired. I can do it for cheap if you need it. 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