diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php
index 08c231de866..9e91aac4327 100644
--- a/htdocs/admin/modules.php
+++ b/htdocs/admin/modules.php
@@ -40,7 +40,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/geturl.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
-require_once DOL_DOCUMENT_ROOT.'/admin/dolistore/class/dolistore.class.php';
+require_once DOL_DOCUMENT_ROOT.'/admin/remotestore/class/dolistore.class.php';
'
@phan-var-force string $dolibarr_main_url_root_alt
@@ -79,14 +79,15 @@ $search_nature = GETPOST('search_nature', 'alpha');
$search_version = GETPOST('search_version', 'alpha');
-// For dolistore search
+// For remotestore search
$options = array();
-$options['per_page'] = 20;
+$options['per_page'] = 10;
$options['categorie'] = ((int) (GETPOSTINT('categorie') ? GETPOSTINT('categorie') : 0));
$options['start'] = ((int) (GETPOSTINT('start') ? GETPOSTINT('start') : 0));
$options['end'] = ((int) (GETPOSTINT('end') ? GETPOSTINT('end') : 0));
$options['search'] = GETPOST('search_keyword', 'alpha');
-$dolistore = new Dolistore(false);
+
+$remotestore = new Dolistore(false);
if (!$user->admin) {
@@ -473,7 +474,7 @@ if ($action == 'set' && $user->admin) {
$form = new Form($db);
$morejs = array();
-$morecss = array("/admin/dolistore/css/dolistore.css");
+$morecss = array("/admin/remotestore/css/store.css");
// Set dir where external modules are installed
if (!dol_is_dir($dirins)) {
@@ -1270,18 +1271,21 @@ if ($mode == 'marketplace') {
if (!getDolGlobalString('MAIN_DISABLE_DOLISTORE_SEARCH') && getDolGlobalInt('MAIN_FEATURES_LEVEL') >= 1) {
// $options is array with filter criteria
- //var_dump($options);
- $dolistore->getRemoteCategories();
- $dolistore->getRemoteProducts($options);
+
+ $nbmaxtoshow = $options['per_page'];
+ $options['per_page']++;
+
+ $remotestore->getRemoteCategories();
+ $remotestore->getRemoteProducts($options);
print ''.$langs->trans('DOLISTOREdescriptionLong').'
';
- $previouslink = $dolistore->get_previous_link();
- $nextlink = $dolistore->get_next_link();
+ $previouslink = $remotestore->get_previous_link();
+ $nextlink = $remotestore->get_next_link();
print '