diff --git a/htdocs/admin/dolistore/class/dolistore.class.php b/htdocs/admin/dolistore/class/dolistore.class.php
index aff21ce58e8..f437dc66975 100644
--- a/htdocs/admin/dolistore/class/dolistore.class.php
+++ b/htdocs/admin/dolistore/class/dolistore.class.php
@@ -211,11 +211,11 @@ class Dolistore
// add image or default ?
if ($product->id_default_image != '') {
- $image_url = DOL_URL_ROOT.'/dolistore/ajax/image.php?id_product='.$product->id.'&id_image='.$product->id_default_image;
+ $image_url = DOL_URL_ROOT.'/admin/dolistore/ajax/image.php?id_product='.$product->id.'&id_image='.$product->id_default_image;
$images = ''.
'
';
} else {
- $images = '
';
+ $images = '
';
}
// free or pay ?
diff --git a/htdocs/admin/dolistore/class/init.php b/htdocs/admin/dolistore/class/init.php
deleted file mode 100644
index 4a94e08002c..00000000000
--- a/htdocs/admin/dolistore/class/init.php
+++ /dev/null
@@ -1,72 +0,0 @@
-
CRUD Tutorial - Customer's list
-
-* @copyright 2007-2013 PrestaShop SA
-* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
-* International Registered Trademark & Property of PrestaShop SA
-* PrestaShop Webservice Library
-* @package PrestaShopWebservice
-*/
-// Here we define constants /!\ You need to replace this parameters
-//https://dolistorecatalogpublickey1234567@vmdevwww.dolistore.com/api/
-define('DEBUG', true); // Debug mode
-define('PS_SHOP_PATH', 'https://www.dolistore.com/'); // Root path of your PrestaShop store
-define('PS_WS_AUTH_KEY', 'dolistorecatalogpublickey1234567'); // Auth key (Get it in your Back Office)
-require_once('./PSWebServiceLibrary.php');
-// Here we make the WebService Call
-try
-{
- $webService = new PrestaShopWebservice(PS_SHOP_PATH, PS_WS_AUTH_KEY, DEBUG);
-
- // Here we set the option array for the Webservice : we want customers resources
- $opt['resource'] = 'categories';
- $opt['id'] = '1';
-
- // Call
- $xml = $webService->get($opt);
- // Here we get the elements from children of customers markup "customer"
- $resources = $xml->categories->children();
-}
-catch (PrestaShopWebserviceException $e)
-{
- // Here we are dealing with errors
- $trace = $e->getTrace();
- if ($trace[0]['args'][0] == 404) echo 'Bad ID';
- else if ($trace[0]['args'][0] == 401) echo 'Bad auth key';
- else echo 'Other error';
-}
-// We set the Title
-echo "Categories's List
";
-echo '';
-// if $resources is set we can lists element in it otherwise do nothing cause there's an error
-if (isset($resources))
-{
- echo '| Id |
';
- foreach ($resources as $resource)
- {
- // Iterates on the found IDs
- echo '| '.$resource->attributes().' |
';
- }
-}
-echo '
';
-?>
-
\ No newline at end of file
diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php
index 6b7d839592c..06f7af5b8d6 100644
--- a/htdocs/admin/modules.php
+++ b/htdocs/admin/modules.php
@@ -254,7 +254,7 @@ if ($action == 'reset' && $user->admin)
$form = new Form($db);
-$morejs = array("/admin/dolistore/js/dolistore.js.php");
+//$morejs = array("/admin/dolistore/js/dolistore.js.php");
$morecss = array("/admin/dolistore/css/dolistore.css");
// Set dir where external modules are installed