diff --git a/extend/shop.extend.php b/extend/shop.extend.php index 49b4812da..9489fe3d1 100644 --- a/extend/shop.extend.php +++ b/extend/shop.extend.php @@ -1,7 +1,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 -define('G4_USE_SHOP', false); +define('G4_USE_SHOP', true); if (!defined('G4_USE_SHOP') || !G4_USE_SHOP) return; @@ -69,13 +69,67 @@ $g4['shop_coupon_table'] = G4_TABLE_PREFIX.'shop_coupon'; $g4['shop_coupon_history_table']= G4_TABLE_PREFIX.'shop_coupon_history'; // 쿠폰사용내역 테이블 $g4['shop_sendcost_table'] = G4_TABLE_PREFIX.'shop_sendcost'; // 추가배송비 테이블 $g4['shop_item_info_table'] = G4_TABLE_PREFIX.'shop_item_info'; // 상품요약정보 테이블 (상품정보고시) +//============================================================================== + +//============================================================================== +// 주문상태를 & 연산을 위해 상수로 선언 +// 중간에 주석처리된 숫자는 중간에 추가될수 있으므로 여분으로 남긴다. +//------------------------------------------------------------------------------ +// 절대 수정하시면 안됩니다. +//------------------------------------------------------------------------------ +define('G4_STATUS_CART', '장바구니'); +define('G4_STATUS_ORDER', '입금대기'); +define('G4_STATUS_SETTLE', '결제완료'); +define('G4_STATUS_STANDBY', '배송준비'); +define('G4_STATUS_DELIVERY', '배송완료'); +define('G4_STATUS_PURCHASE', '구매확정'); + + +//============================================================================== +// 상품유형을 & 연산을 위해 상수로 선언 +// 합계 = 1,073,741,823 +// MySQL Interger 의 경우 -2,147,483,648 ~ 2,147,483,647 이므로 +// 정수형 필드 한개를 사용하여 & 연산으로 30개 조건을 만족한다. +//------------------------------------------------------------------------------ +// 절대 수정하시면 안됩니다. +//------------------------------------------------------------------------------ +define('G4_TYPE1', 1); +define('G4_TYPE2', 2); +define('G4_TYPE3', 4); +define('G4_TYPE4', 8); +define('G4_TYPE5', 16); +define('G4_TYPE6', 32); +define('G4_TYPE7', 64); +define('G4_TYPE8', 128); +define('G4_TYPE9', 256); +define('G4_TYPE10', 512); +define('G4_TYPE11', 1024); +define('G4_TYPE12', 2048); +define('G4_TYPE13', 4096); +define('G4_TYPE14', 8192); +define('G4_TYPE15', 16384); +define('G4_TYPE16', 32768); +define('G4_TYPE17', 65536); +define('G4_TYPE18', 131072); +define('G4_TYPE19', 262144); +define('G4_TYPE20', 524288); +define('G4_TYPE21', 1048576); +define('G4_TYPE22', 2097152); +define('G4_TYPE23', 4194304); +define('G4_TYPE24', 8388608); +define('G4_TYPE25', 16777216); +define('G4_TYPE26', 33554432); +define('G4_TYPE27', 67108864); +define('G4_TYPE28', 134217728); +define('G4_TYPE29', 268435456); +define('G4_TYPE30', 536870912); //============================================================================== //============================================================================== // 쇼핑몰 필수 실행코드 모음 시작 -//============================================================================== +//------------------------------------------------------------------------------ // 쇼핑몰 설정값 배열변수 $default = sql_fetch(" select * from {$g4['shop_default_table']} "); diff --git a/head.php b/head.php index 7d2e759f1..eb4919b3a 100644 --- a/head.php +++ b/head.php @@ -26,15 +26,15 @@ include_once(G4_LIB_PATH.'/popular.lib.php');