Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions component/admin/language/en-GB/en-GB.com_redshop.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 5 additions & 0 deletions component/admin/views/prices_detail/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
form.product_price.focus();
return;
}
if (form.product_price.value <= form.discount_price.value) {
alert("<?php echo JText::_('COM_REDSHOP_DISCOUNT_PRICE_MUST_BE_LOWER_THAN_PRODUCT_PRICE', true); ?>");
form.product_price.focus();
return;
}
submitform(pressbutton);
};
</script>
Expand Down