studio B-now Posted January 8, 2015 Share Posted January 8, 2015 Hi, thanks for read this ! I have searched a long time on a lot of forum if it was possible, but I don't find anything :/ Is it possible, with a form ( in a custom login page ) to create a new Supplier ? Maybe a supplier object method or a constructor ? I don't find at all U_u. Is this possible ? Thanks for your help ! Link to comment Share on other sites More sharing options...
fred-vinapresta Posted January 8, 2015 Share Posted January 8, 2015 (edited) Hi, yes, you can do it, but you need to create a new custom page : php file, controller and template. Then in your template you can add a form and do the supplier aving in your controller. You don't need to create a new Class Object cause you ll just manipulate the existing Supplier class. For the login,you can get use the isLogged method of customer and redirect to login form if necessary Edited January 8, 2015 by fred-vinapresta (see edit history) Link to comment Share on other sites More sharing options...
studio B-now Posted January 8, 2015 Author Share Posted January 8, 2015 Thank you for you answer ! I have create the new page like you have say to me. I'm a true Newbie with prestashop so I have understand how to display content with smarty, use if/else/ ...ect. but I don't understand how to do for communicate between the tpl and the php file ... How can I send the variable from .php to .tpl ? Thanks ! 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