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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

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