diff --git a/component/admin/language/en-GB/en-GB.com_redshop.ini b/component/admin/language/en-GB/en-GB.com_redshop.ini index 895d50c0048..898b5fb3272 100644 --- a/component/admin/language/en-GB/en-GB.com_redshop.ini +++ b/component/admin/language/en-GB/en-GB.com_redshop.ini @@ -4529,6 +4529,7 @@ COM_REDSHOP_N_ITEMS_CHECKED_IN = "%d items successfully checked in" COM_REDSHOP_PRODUCT_PRICE_SAVE_SUCCESS = "Products price save successfully" COM_REDSHOP_PRODUCT_PRICE_SAVE_FAILED = "Failed to save products price" COM_REDSHOP_PRODUCT_PRICE_INVALID = "Product Price must have valid value" +COM_REDSHOP_DISCOUNT_PRICE_MUST_BE_LOWER_THAN_PRODUCT_PRICE = "Discount Price must be lower than Product Price" COM_REDSHOP_PRODUCT_PRICE_END_DATE_MUST_MORE_THAN_START_DATE = "Start Date is not more than End Date" COM_REDSHOP_PRODUCT_PRICE_QUANTITY_END_MUST_MORE_THAN_QUANTITY_START = "Quantity Start is not more than Quantity End" COM_REDSHOP_PRODUCT_PRICE_SAVE_SUCCESS = "Products price save successfully" diff --git a/component/admin/views/prices_detail/tmpl/default.php b/component/admin/views/prices_detail/tmpl/default.php index cdff642516f..2c5d540543d 100644 --- a/component/admin/views/prices_detail/tmpl/default.php +++ b/component/admin/views/prices_detail/tmpl/default.php @@ -31,6 +31,11 @@ form.product_price.focus(); return; } + if (form.product_price.value <= form.discount_price.value) { + alert(""); + form.product_price.focus(); + return; + } submitform(pressbutton); };