Jump to content

Use of Prestashop classes


IgnacioSM

Recommended Posts

Hello,

 

I am trying to use Prestashop classes but I only receive an error "this class doesn't exist". 

 

I have a file called server.php which takes some data and tries to put in on Prestashop database, but I will prefer to put it with prestashop classes, because it is a better method.

 

I have my file "server.php" in "httdocs/Webserver/server.php"  and a folder called "prueba_prestashop" with all the classes and controllers,... in "httdocs/prueba_prestashop/". 

 

What files should I include in my program to use Prestashop classes?

 

 

For example, I can use _DB_PREFIX_ and the others using :

 

 

require_once ('../prueba_prestashop/config/settings.inc.php');

 

But I would like to use Product.php, Categories.php and some of the others.

 

Thanks for help

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