Jump to content

Steps To Programmatically Add Product To Database


nurimaso

Recommended Posts

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

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...