diff --git a/admin-dev/themes/default/template/controllers/import/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/import/helpers/form/form.tpl index 8b043080e..e4f4dcc76 100644 --- a/admin-dev/themes/default/template/controllers/import/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/import/helpers/form/form.tpl @@ -97,8 +97,10 @@
  • {l s='Sample Addresses file'}
  • {l s='Sample Manufacturers file'}
  • {l s='Sample Suppliers file'}
  • -
  • {l s='Supply Orders sample file'}
  • -
  • {l s='Supply Orders Details sample file'}
  • + {if $PS_ADVANCED_STOCK_MANAGEMENT} +
  • {l s='Supply Orders sample file'}
  • +
  • {l s='Supply Orders Details sample file'}
  • + {/if}
     
    diff --git a/controllers/admin/AdminImportController.php b/controllers/admin/AdminImportController.php index 3e84ace90..5e217ee1f 100644 --- a/controllers/admin/AdminImportController.php +++ b/controllers/admin/AdminImportController.php @@ -464,6 +464,7 @@ class AdminImportControllerCore extends AdminController 'languages' => Language::getLanguages(false), 'id_language' => $this->context->language->id, 'available_fields' => $this->getAvailableFields(), + 'PS_ADVANCED_STOCK_MANAGEMENT' => Configuration::get('PS_ADVANCED_STOCK_MANAGEMENT'), ); return parent::renderForm();