Sterk Posted October 27, 2019 Share Posted October 27, 2019 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 : 1.7.6.0 / Apache 2.4 Thanks for any help Link to comment Share on other sites More sharing options...
Sterk Posted October 30, 2019 Author Share Posted October 30, 2019 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 ? 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