genny3021 Posted April 25, 2014 Share Posted April 25, 2014 Hello, please where can i find the function that adds a new product to the database? and where is it called. I what to write a function that post data to my custom database table and this function is called immediately a new product is created in the BO. Thanks Link to comment Share on other sites More sharing options...
NemoPS Posted April 26, 2014 Share Posted April 26, 2014 I believe you need to start from scratch http://nemops.com/prestashop-categories-and-products/#.U1tsafna6r0 Link to comment Share on other sites More sharing options...
vekia Posted April 26, 2014 Share Posted April 26, 2014 Hello, please where can i find the function that adds a new product to the database? and where is it called. I what to write a function that post data to my custom database table and this function is called immediately a new product is created in the BO. Thanks you're looking for (i hope so) for AdminProductsController located in controllers/admin/ directory. this controllers handle "product creation" process (and edit too) Link to comment Share on other sites More sharing options...
genny3021 Posted April 28, 2014 Author Share Posted April 28, 2014 Thanks Nemo, not really, i dint need to start from scratch. The link was informative though. Thanks alot Vekia, exactly what i needed. I called my function from within the "processAdd" method. Problem solved. Link to comment Share on other sites More sharing options...
vekia Posted April 28, 2014 Share Posted April 28, 2014 thank you for information i marked topic as solved. with regards, Milos 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