diff --git a/application/language/en-GB/config_lang.php b/application/language/en-GB/config_lang.php index 158a93cb3..bdf7af024 100644 --- a/application/language/en-GB/config_lang.php +++ b/application/language/en-GB/config_lang.php @@ -135,6 +135,11 @@ $lang["config_general_configuration"] = "General Configuration"; $lang["config_giftcard_number"] = "Gift Card Number"; $lang["config_giftcard_random"] = "Generate Random"; $lang["config_giftcard_series"] = "Generate in Series"; +$lang["config_image_allowed_file_types"] = "Allowed file types"; +$lang["config_image_max_height_tooltip"] = "Maximum allowed height of image uploads in pixels (px)."; +$lang["config_image_max_size_tooltip"] = "Maximum allowed file size of image uploads in kilobytes (kb)."; +$lang["config_image_max_width_tooltip"] = "Maximum allowed width of image uploads in pixels (px)."; +$lang["config_image_restrictions"] = "Image Upload Restrictions"; $lang["config_include_hsn"] = "Include Support for HSN Codes"; $lang["config_info"] = "Information"; $lang["config_info_configuration"] = "Shop Information"; diff --git a/application/language/en-US/config_lang.php b/application/language/en-US/config_lang.php index 8f89e8bdb..e7d9ea4c6 100644 --- a/application/language/en-US/config_lang.php +++ b/application/language/en-US/config_lang.php @@ -135,6 +135,11 @@ $lang["config_general_configuration"] = "General Configuration"; $lang["config_giftcard_number"] = "Gift Card Number"; $lang["config_giftcard_random"] = "Generate Random"; $lang["config_giftcard_series"] = "Generate in Series"; +$lang["config_image_allowed_file_types"] = "Allowed file types"; +$lang["config_image_max_height_tooltip"] = "Maximum allowed height of image uploads in pixels (px)."; +$lang["config_image_max_size_tooltip"] = "Maximum allowed file size of image uploads in kilobytes (kb)."; +$lang["config_image_max_width_tooltip"] = "Maximum allowed width of image uploads in pixels (px)."; +$lang["config_image_restrictions"] = "Image Upload Restrictions"; $lang["config_include_hsn"] = "Include Support for HSN Codes"; $lang["config_info"] = "Information"; $lang["config_info_configuration"] = "Store Information"; diff --git a/application/views/configs/general_config.php b/application/views/configs/general_config.php index e84edcfc7..77882894a 100644 --- a/application/views/configs/general_config.php +++ b/application/views/configs/general_config.php @@ -25,14 +25,14 @@ 'value' => $this->config->item('default_sales_discount'))); ?> 'default_sales_discount_type', - 'name' => 'default_sales_discount_type', - 'value' => 1, + 'id' => 'default_sales_discount_type', + 'name' => 'default_sales_discount_type', + 'value' => 1, 'data-toggle' => 'toggle', - 'data-size' => 'normal', - 'data-onstyle' => 'success', - 'data-on' => ''.$this->config->item('currency_symbol').'', - 'data-off' => '%', + 'data-size' => 'normal', + 'data-onstyle' => 'success', + 'data-on' => ''.$this->config->item('currency_symbol').'', + 'data-off' => '%', 'checked' => $this->config->item('default_sales_discount_type'))); ?> @@ -122,9 +122,80 @@ $this->lang->line('config_left'), 'center' => $this->lang->line('config_center'), - 'right' => $this->lang->line('config_right') - ), - $this->config->item('notify_horizontal_position'), array('class' => 'form-control input-sm')); ?> + 'right' => $this->lang->line('config_right')), + $this->config->item('notify_horizontal_position'), array('class' => 'form-control input-sm')); ?> + + + + + +