cailhuiris Posted September 28, 2012 Share Posted September 28, 2012 Hi all, I wonder about something, today I want to customize that add more information about product on admin panel when I edit or add product, some fields have shown in information tab. Name, Reference, Short description and whatever so I want to add more fields(textarea, input, radio and etc) that I can fill. what can i do? ( i'm not native english speaker, so my english writing is very poor ) thank you. Link to comment Share on other sites More sharing options...
PrestaShopDeveloper Posted September 28, 2012 Share Posted September 28, 2012 I suppose you're not a developer. If that's true, you ca hire a developer to do these changes or start learning PHP development. Link to comment Share on other sites More sharing options...
cailhuiris Posted September 28, 2012 Author Share Posted September 28, 2012 I suppose you're not a developer. If that's true, you ca hire a developer to do these changes or start learning PHP development. what makes you think so? I am a developer what makes you think so? I am a junior developer Link to comment Share on other sites More sharing options...
PrestaShopDeveloper Posted September 28, 2012 Share Posted September 28, 2012 The best (the safer) way is to create a module that adds a Tab at the "Edit Product" page. What you need is: 1. In the module to register the required hooks: displayAdminProductsExtra, actionProductUpdate, actionProductSave, actionProductDelete, etc . 2. To implemet the hooks (in the module): public function hookDisplayAdminProductsExtra($params) { return '<input type="text" name="pt" value="ppp" /> '; } (sample "return" from ADMIN\themes\default\template\controllers\products\seo.tpl) public function hookActionProductUpdate($params){ die(Tools::getValue('pt')); } (sample code from:controllers\admin\AdminProductsController.php processWarehouses() method) Link to comment Share on other sites More sharing options...
Recommended Posts