diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php
index 868743630e5..dec5fec8e39 100644
--- a/htdocs/admin/modules.php
+++ b/htdocs/admin/modules.php
@@ -1286,14 +1286,16 @@ if ($mode == 'marketplace') {
if (!getDolGlobalString('MAIN_DISABLE_DOLISTORE_SEARCH') && getDolGlobalInt('MAIN_ENABLE_DOLISTORE')) {
$messagetoadd = '';
if ($remotestore->dolistoreApiStatus <= 0) {
- $messagetoadd = '
'.$remotestore->dolistoreApiError.'
Failed to login to: '.$remotestore->dolistore_api_url;
- $messagetoadd .= '
using API public key: '.$remotestore->dolistore_api_key;
- // Add basic auth if needed
- $basicAuthLogin = getDolGlobalString('MAIN_MODULE_DOLISTORE_BASIC_LOGIN');
- $basicAuthPassword = getDolGlobalString('MAIN_MODULE_DOLISTORE_BASIC_PASSWORD');
- if ($basicAuthLogin) {
- $messagetoadd .= '
using basic auth login: base64('.$basicAuthLogin.':'.$basicAuthPassword.')';
- }
+ $messagetoadd = '
'.$remotestore->dolistoreApiError.'
Failed to get answer of remote API server
';
+ }
+
+ $messagetoadd .= '
Using Remote API URL MAIN_MODULE_DOLISTORE_API_URL: '.$remotestore->dolistore_api_url;
+ $messagetoadd .= '
Using API public key MAIN_MODULE_DOLISTORE_API_KEY = '.$remotestore->dolistore_api_key;
+ // Add basic auth if needed
+ $basicAuthLogin = getDolGlobalString('MAIN_MODULE_DOLISTORE_BASIC_LOGIN');
+ $basicAuthPassword = getDolGlobalString('MAIN_MODULE_DOLISTORE_BASIC_PASSWORD');
+ if ($basicAuthLogin) {
+ $messagetoadd .= '
Using basic auth login: base64('.$basicAuthLogin.':'.$basicAuthPassword.')';
}
print $remotestore->libStatus($remotestore->dolistoreApiStatus, 2, $messagetoadd);
}
@@ -1334,19 +1336,21 @@ if ($mode == 'marketplace') {
print ''.$langs->trans('DOLISTOREdescriptionLong').'
';
- //$previouslink = $remotestore->get_previous_link();
- //$nextlink = $remotestore->get_next_link();
+ $categories_tree = $remotestore->getCategories(); // Call API to get the categories
- $categories_tree = $remotestore->getCategories();
$products_list = $remotestore->getProducts($options);
+
$previouslink = $remotestore->get_previous_link();
+
$nextlink = $remotestore->get_next_link();
+
print '