neverbug Posted April 1, 2013 Share Posted April 1, 2013 Hello, I would like to duplicate the controller AdminOrders, because I want to customize print orders. How to? TNX. Link to comment Share on other sites More sharing options...
PascalVG Posted April 1, 2013 Share Posted April 1, 2013 perhaps just override it? add changes to overriding controller Link to comment Share on other sites More sharing options...
neverbug Posted April 1, 2013 Author Share Posted April 1, 2013 can you give me an example? Thank you very much! Link to comment Share on other sites More sharing options...
PascalVG Posted April 1, 2013 Share Posted April 1, 2013 You can for example have a look at controllers/CartController.php how they do overriding (extending) classes. class CartControllerCore extends FrontController But best is to first have a look at the PS developers docs: http://docs.prestashop.com/display/PS15/Developer+Guide more specifically: http://docs.prestashop.com/display/PS15/Overriding+default+behaviors Here they describe what to do, where to put your files etc. So before you start messing around, make sure you make an "informed mess" :-) Have fun! Pascal Link to comment Share on other sites More sharing options...
neverbug Posted April 2, 2013 Author Share Posted April 2, 2013 I tried all ways but without success I want to keep helper/view/view.tpl and when I need it, I want to call helper/view/view2.tpl of "AdminOrdersController" How to? Please help me 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