aligulbay Posted October 10, 2012 Share Posted October 10, 2012 Hello In regular prestashop version, when you add product in admin page, Only required field is the product name. How can I add more required file in adminproduct.php. Like "Weight ( package )" field , I want to make this field as required to add product I am using 1.4.6.2 version thanks for any help Ali Link to comment Share on other sites More sharing options...
El Patron Posted October 10, 2012 Share Posted October 10, 2012 you would create module that is hooked off that admin tab. they are pretty easy to do and worth the time to learn how to do...you should be at least familiar with php... see here to get started: http://doc.prestashop.com/display/PS14/Creating+a+PrestaShop+module and in particular see hooks: http://doc.prestashop.com/display/PS14/Creating+a+PrestaShop+module#CreatingaPrestaShopmodule-Hookingamodule and specifically addproduct AdminProducts.php Called when a product is created or duplicated, right after said creation/duplication. Link to comment Share on other sites More sharing options...
aligulbay Posted October 13, 2012 Author Share Posted October 13, 2012 Hello thank you for the help But, I must say that I have no skills with php. I would be so happy if you can give me more information thanks Link to comment Share on other sites More sharing options...
aligulbay Posted October 16, 2012 Author Share Posted October 16, 2012 there is a table name on DB called ps_required_field , is there any relation with them ? Any help please ... Link to comment Share on other sites More sharing options...
El Patron Posted October 16, 2012 Share Posted October 16, 2012 you posted in the development section so I just assume you have a particular development question or at least interested in learning to develop. go look at the code in youradminfolder/tabs/adminproducts.php if you have a particular question after looking at the code, you will need to learn some basic development....i.e. php...or leave things alone as they are...or hire someone to make changes for you.. suerte Link to comment Share on other sites More sharing options...
aligulbay Posted October 19, 2012 Author Share Posted October 19, 2012 you posted in the development section so I just assume you have a particular development question or at least interested in learning to develop. go look at the code in youradminfolder/tabs/adminproducts.php if you have a particular question after looking at the code, you will need to learn some basic development....i.e. php...or leave things alone as they are...or hire someone to make changes for you.. suerte Dear Suerte Thank you for the help, I Just opened this topic to know if it is possible to do that. 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