Jump to content

use AdminImportController outside prestashop directory

Recommended Posts

Hi all,

I am a little confused in my project: my shop is in this directory  /www/presta

and i am working in other project in this directory /www/syncback

My app syncback must be able to change product image  or other stuff  with products by using AdminImportController.php

So, in my /www/syncback/contoller/mycontorller.php script,  i use this directive : include_once(dirname(__FILE__).'/../../presta/config/config.inc.php');

1) it's include my config.in.php file but it give me an error 500.

2) i know that i need also include   this require_once  dirname(__FILE__).'/../../presta/controllers/admin/AdminImportController.php';

But no way, so how can include this two file to work with products outside a prestashop directory

PS / Apache 2.4

Thanks for any help



Share this post

Link to post
Share on other sites

I thinks the problem is in defines_uri.inc.php because all my cosntants like  : (_PS_ADMIN_DIR_ ,   _PS_CONFIG_DIR_ ....) are empty.

Anybody have used prestashop class outside the prestashop directory ?







Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More