장바구니 가격 변동 사항 체크 코드 추가

This commit is contained in:
thisgun
2020-10-28 15:13:16 +09:00
parent 27bddb9208
commit c6669f76e5
4 changed files with 107 additions and 0 deletions

View File

@ -37,6 +37,10 @@ if($cart_stock_limit > 0) {
die("주문 요청 때까지 ".$cart_stock_limit."시간 이상 경과되어 주문 상품이 초기화 됐습니다.\n\n 장바구니에서 주문하실 상품을 다시 확인해 주십시오.");
}
if (function_exists('before_check_cart_price')) {
if(! before_check_cart_price($tmp_cart_id) ) die("장바구니 금액에 변동사항이 있습니다.\n장바구니를 다시 확인해 주세요.");
}
// 재고체크
$sql = " select *
from {$g5['g5_shop_cart_table']}

View File

@ -15,6 +15,10 @@ sql_query($sql);
$cart_action_url = G5_SHOP_URL.'/cartupdate.php';
if(function_exists('before_check_cart_price')) {
before_check_cart_price($s_cart_id, true, true, true);
}
if (G5_IS_MOBILE) {
include_once(G5_MSHOP_PATH.'/cart.php');
return;

View File

@ -24,6 +24,10 @@ else {
if (get_cart_count($tmp_cart_id) == 0)
alert('장바구니가 비어 있습니다.', G5_SHOP_URL.'/cart.php');
if (function_exists('before_check_cart_price')) {
if(! before_check_cart_price($tmp_cart_id) ) alert('장바구니 금액에 변동사항이 있습니다.\n장바구니를 다시 확인해 주세요.', G5_SHOP_URL.'/cart.php');
}
// 새로운 주문번호 생성
$od_id = get_uniqid();
set_session('ss_order_id', $od_id);