상품금액이 0원일 때 쿠폰 적용 오류 안내 코드 추가

This commit is contained in:
chicpro committed 2013-12-09 11:39:16 +09:00
1 parent 1b16512ddb
commit 153b19b1f8
3 files changed
+12 -1

No files matched your search

+4
View File
@@ -909,6 +909,10 @@ $(function() {
$("#od_coupon_frm").remove();
var $this = $(this);
var price = parseInt($("input[name=org_od_price]").val()) - parseInt($("input[name=item_coupon]").val());
if(price <= 0) {
alert('상품금액이 0원이므로 쿠폰을 사용할 수 없습니다.');
return false;
}
$.post(
"./ordercoupon.php",
{ price: price },