Jump to content

Add supplier with form from front office


studio B-now

Recommended Posts

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

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 by fred-vinapresta (see edit history)
Link to comment
Share on other sites

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 :wacko: ... How can I send the variable from .php to .tpl ? Thanks !

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...