nurimaso Posted March 18, 2016 Share Posted March 18, 2016 HI, I'm new in Prestashop. I'm not a user. I client contacted me to insert a new application in it but I don't know the steps to follow to insert a new external product to the database programmatically. I found the code and I inserted it in a PHP page but an error is always shown. After searching through internet I undertand that I have to create a module first then insert the code. I created a new module but I don't know how to use it to insert de code I need into the site. The client don't want to use Web Service at all. Could someone help me explaining easilly the steps to make code works? What I did still now is: 1. I created a new module that it is listed into de Modules in back-end 2. I installed it Now, how could I create a PHP page to insert the ADD PRODUCT code, where to create it and what code have I to add to use $product = new Product(); Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted March 18, 2016 Share Posted March 18, 2016 I think review of PrestaShop developers guide might give you some very good pointers. You can learn about hooks as to when your code should fire. Also make sure to download PS and search the files for specific calls and how they are used/implemented. http://doc.prestashop.com/display/PS16/Developer+Guide Link to comment Share on other sites More sharing options...
nurimaso Posted March 21, 2016 Author Share Posted March 21, 2016 At last I solved it placing the php file into admin folder. 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