diff --git a/doc/erd/g4s/.project b/doc/erd/g4s/.project new file mode 100644 index 000000000..f00bfd0df --- /dev/null +++ b/doc/erd/g4s/.project @@ -0,0 +1,11 @@ + + + G4S + + + + + + + + diff --git a/doc/erd/g4s/G4S_all.exerd b/doc/erd/g4s/G4S_all.exerd new file mode 100644 index 000000000..9ae4bcaac Binary files /dev/null and b/doc/erd/g4s/G4S_all.exerd differ diff --git a/doc/erd/g4s/g4s_shop.exerd b/doc/erd/g4s/g4s_shop.exerd new file mode 100644 index 000000000..68dc5ff66 Binary files /dev/null and b/doc/erd/g4s/g4s_shop.exerd differ diff --git a/doc/ppt/쇼핑몰기능추가.pptx b/doc/ppt/쇼핑몰기능추가.pptx new file mode 100644 index 000000000..52e3431f6 Binary files /dev/null and b/doc/ppt/쇼핑몰기능추가.pptx differ diff --git a/extend/shop.extend.php b/extend/shop.extend.php index 9489fe3d1..7e2c37648 100644 --- a/extend/shop.extend.php +++ b/extend/shop.extend.php @@ -73,17 +73,21 @@ $g4['shop_item_info_table'] = G4_TABLE_PREFIX.'shop_item_info'; //============================================================================== -// 주문상태를 & 연산을 위해 상수로 선언 -// 중간에 주석처리된 숫자는 중간에 추가될수 있으므로 여분으로 남긴다. +// 주문상태를 선언 +// 실제 주문테이블에는 set 방식으로 들어감 //------------------------------------------------------------------------------ // 절대 수정하시면 안됩니다. //------------------------------------------------------------------------------ -define('G4_STATUS_CART', '장바구니'); -define('G4_STATUS_ORDER', '입금대기'); -define('G4_STATUS_SETTLE', '결제완료'); -define('G4_STATUS_STANDBY', '배송준비'); -define('G4_STATUS_DELIVERY', '배송완료'); -define('G4_STATUS_PURCHASE', '구매확정'); +define('G4_STATUS_CART', '장바구니'); +define('G4_STATUS_STANDBY', '입금대기'); +define('G4_STATUS_PAYMENT', '결제완료'); +define('G4_STATUS_READY', '배송준비중'); +define('G4_STATUS_DELIVERY', '배송중'); +define('G4_STATUS_COMPLETE', '배송완료'); +define('G4_STATUS_END', '구매확정'); +define('G4_STATUS_CANCEL', '취소'); +define('G4_STATUS_RETURN', '반품'); +define('G4_STATUS_EXCHANGE', '교환'); //============================================================================== diff --git a/shop/cartcoupon.php b/shop/cartcoupon.php index 5ab5ec353..e42faa5ae 100644 --- a/shop/cartcoupon.php +++ b/shop/cartcoupon.php @@ -134,8 +134,8 @@ $sql = " select * from {$g4['shop_coupon_table']} where cp_use = '1' and cp_type = '0' - and cp_start <= '{$g4['time_ymd']}' - and cp_end >= '{$g4['time_ymd']}' + and cp_start <= '".G4_TIME_YMD."' + and cp_end >= '".G4_TIME_YMD."' and ( it_id = '{$it['it_id']}' or cp_target = '2' ) and mb_id in ( '{$member['mb_id']}', '전체회원' ) and ca_id in ( '{$it['ca_id']}', '{$it['ca_id2']}', '{$it['ca_id3']}', '전체카테고리' ) @@ -189,7 +189,7 @@ if(!$cnt) { } $g4['title'] = '쿠폰적용'; -include_once ($g4['path'].'/head.sub.php'); +include_once (G4_PATH.'/head.sub.php'); ?>