harlandraka94 Posted March 2, 2017 Share Posted March 2, 2017 I'm creating a PS module that will generate a PDF when an order is placed. It will then use the displayOrderDetail hook to provide the user a link to download the generated PDF. I would like to use my module for providing those PDFs, in order to manage access to documents, because if I simply link to the download folder, one could just list the folder and download all the files, while with the module I can check if the user has rights to see the file before downloading it. In my understanding, I think I need to define a new action, but I'm not sure this is the right way to do it. Is there a way to "bind" my controller method to a new action? If not, is there a way to tell prestashop to let my controller handle a url with some predefined parameters? Thank you 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