abdullacm Posted October 10, 2014 Share Posted October 10, 2014 Hi, i'm new to prestashop, i have a requirement of making an module based on the override files. I have the following files1. CartController.php2. ProductController.php3. product.availability.tpl4. product.tpl5.ajax-cart.jsi need to create a module with these files, what are the steps i need to do or give me a guide to how to organize these files. I need a help for the startup. Thanks Link to comment Share on other sites More sharing options...
bellini13 Posted October 10, 2014 Share Posted October 10, 2014 What was changed in CartController and ProductController? What functions were overriden and what are you trying to accomplish? You need to determine if you can remove the override and perform the same changes via a hook. If you cannot do them via a hook, you may have no choice but to leave the override in place. CartController.php ProductController.php What is product.availability.tpl? Did you get this from a module? product.availability.tpl I assume product.tpl was taken from the theme? If so, I do not believe Prestashop allows you to override a theme template file from a module. product.tpl ajax-cart.js comes from the blockcart module. You cannot change this file from a new/different module. ajax-cart.js 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