diff --git a/admin-dev/themes/default/template/products/informations.tpl b/admin-dev/themes/default/template/products/informations.tpl index 19139f0c5..ff0b4c566 100644 --- a/admin-dev/themes/default/template/products/informations.tpl +++ b/admin-dev/themes/default/template/products/informations.tpl @@ -185,7 +185,7 @@ languages=$languages input_name='description_short' input_value=$product->description_short - max=400} + max=$PS_PRODUCT_SHORT_DESC_LIMIT}

diff --git a/controllers/admin/AdminProductsController.php b/controllers/admin/AdminProductsController.php index 840574899..0169e9439 100644 --- a/controllers/admin/AdminProductsController.php +++ b/controllers/admin/AdminProductsController.php @@ -3169,6 +3169,7 @@ class AdminProductsControllerCore extends AdminController $data->assign('currency', $currency); $data->assign($this->tpl_form_vars); $data->assign('link', $this->context->link); + $data->assign('PS_PRODUCT_SHORT_DESC_LIMIT', Configuration::get('PS_PRODUCT_SHORT_DESC_LIMIT') ? Configuration::get('PS_PRODUCT_SHORT_DESC_LIMIT') : 400); $this->tpl_form_vars['product'] = $product; $this->tpl_form_vars['custom_form'] = $this->context->smarty->createTemplate($this->tpl_form, $data)->fetch(); }