mheath5440 Posted July 31, 2012 Share Posted July 31, 2012 Hi, I'm writing a BO module to export orders in a particular HTML format. I managed to create the module and get it to appear on the tabs and display a piece of text by using display(). Is there any documentation on creating BO modules and using the superclass methods such as displayForm()? If I try and call the super displayForm() from within my own displayForm() method nothing happens: <?php include_once( PS_ADMIN_DIR.'/../classes/AdminTab.php'); class AdminOrderExport extends AdminTab{ public function __construct(){ $this->table = 'order'; $this->className = 'OrderExport'; parent::__construct(); } public function displayForm(){ parent::displayForm(); } public function display(){ echo '<div>Test</div>'; $this->displayForm(); } } Any help would be appreciated. Link to comment Share on other sites More sharing options...
El Patron Posted July 31, 2012 Share Posted July 31, 2012 this may help http://doc.prestashop.com/display/PS14/Creating+a+PrestaShop+module Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 31, 2012 Share Posted July 31, 2012 Hi mheath, You can find our guide to developing a PrestaShop module here. I hope this helps. -Mike Link to comment Share on other sites More sharing options...
mheath5440 Posted July 31, 2012 Author Share Posted July 31, 2012 Thanks, I've been through the documents...what they are lacking is how specific features of back office modules work such as: - once the tab has been created with the display() method, how do you call methods from your form submits? What files/classes should be used? Does it call back to the same class? Really need a basis of how the architecture for back office modules work and I can't find anything. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 31, 2012 Share Posted July 31, 2012 Thanks, I've been through the documents...what they are lacking is how specific features of back office modules work such as: - once the tab has been created with the display() method, how do you call methods from your form submits? What files/classes should be used? Does it call back to the same class? Really need a basis of how the architecture for back office modules work and I can't find anything. In that case, you may want to take a look at our Physical Data Model. -Mike Link to comment Share on other sites More sharing options...
aaragus Posted August 3, 2012 Share Posted August 3, 2012 (edited) That is very useful Mike, but for example: how can we change what goes into the message from the order? (I am assuming that is the email that goes out to the client). I can see in the database what can be changed, or associate another table to that but not sure where I we can inject or caputre a core action. Edited August 3, 2012 by aaragus (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