diff --git a/adm/admin.menu400.shop_1of2.php b/adm/admin.menu400.shop_1of2.php index 007291aa1..b5f94fc9c 100644 --- a/adm/admin.menu400.shop_1of2.php +++ b/adm/admin.menu400.shop_1of2.php @@ -17,6 +17,7 @@ $menu['menu400'] = array ( array('400490', '마일리지관리', G4_ADMIN_URL.'/shop_admin/mileagelist.php', 'scf_mileage'), array('400650', '쿠폰관리', G4_ADMIN_URL.'/shop_admin/couponlist.php', 'scf_coupon'), array('400500', '배송일괄처리', G4_ADMIN_URL.'/shop_admin/deliverylist.php', 'scf_deli', 1), - array('400740', '배송업체관리', G4_ADMIN_URL.'/shop_admin/deliverycodelist.php', 'scf_deli_co', 1) + array('400740', '배송업체관리', G4_ADMIN_URL.'/shop_admin/deliverycodelist.php', 'scf_deli_co', 1), + array('400750', '추가배송비관리', G4_ADMIN_URL.'/shop_admin/sendcostlist.php', 'scf_sendcost', 1) ); ?> \ No newline at end of file diff --git a/adm/shop_admin/sendcostlist.php b/adm/shop_admin/sendcostlist.php new file mode 100644 index 000000000..08a9c462c --- /dev/null +++ b/adm/shop_admin/sendcostlist.php @@ -0,0 +1,161 @@ + + +
+

추가배송비 내역

+ +
+ + + + + + + + + + + + + + + + + + + + + '; + ?> + +
+ + + 지역명우편번호추가배송비
+ + +
자료가 없습니다.
+ +
+ +
+ +
+
+ + + +
+

추가배송비 등록

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ + +
+ +
+ +
+ +
+ +
+ + + + \ No newline at end of file diff --git a/adm/shop_admin/sendcostupdate.php b/adm/shop_admin/sendcostupdate.php new file mode 100644 index 000000000..37f381dd6 --- /dev/null +++ b/adm/shop_admin/sendcostupdate.php @@ -0,0 +1,45 @@ + \ No newline at end of file diff --git a/adm/shop_admin/sendcostzipcode.php b/adm/shop_admin/sendcostzipcode.php new file mode 100644 index 000000000..0f61c69e0 --- /dev/null +++ b/adm/shop_admin/sendcostzipcode.php @@ -0,0 +1,117 @@ +'.$value.' '.PHP_EOL; + } + } +} + +$g4['title'] = "우편번호 찾기"; +include_once(G4_PATH.'/head.sub.php'); +?> + + +
+
+ + + + + + + + + + + +
우편번호 찾기
주소지의 시/군을 입력하세요.
+ + + +
+
+ + +

검색결과

+

+ +

검색된 결과가 없습니다.

+ +
+ + + + \ No newline at end of file diff --git a/extend/shop.extend2.php b/extend/shop.extend2.php index cb3310c15..283581073 100644 --- a/extend/shop.extend2.php +++ b/extend/shop.extend2.php @@ -312,4 +312,20 @@ if(!$result) { ADD `od_receipt_amount` INT(11) NOT NULL DEFAULT '0' AFTER `od_temp_point`, ADD `od_receipt_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER `od_bank_account` ", false); } + +// 추가배송비 테이블 +$sql = " select sc_id from {$g4['shop_sendcost_table']} limit 1 "; +$result = sql_query($sql, false); +if(!$result) { + sql_query(" CREATE TABLE IF NOT EXISTS `{$g4['shop_sendcost_table']}` ( + `sc_id` INT(11) NOT NULL AUTO_INCREMENT, + `sc_name` VARCHAR(255) NOT NULL DEFAULT '', + `sc_zip1` VARCHAR(10) NOT NULL DEFAULT '', + `sc_zip2` VARCHAR(10) NOT NULL DEFAULT '', + `sc_amount` INT(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`sc_id`), + KEY `sc_zip1` (`sc_zip1`), + KEY `sc_zip2` (`sc_zip2`) + )", true); +} ?> \ No newline at end of file diff --git a/install/install_db.php b/install/install_db.php index 3e05de7b8..4ee642499 100644 --- a/install/install_db.php +++ b/install/install_db.php @@ -494,6 +494,7 @@ if($shop_install) { fwrite($f, "\$g4['shop_wish_table'] = SHOP_TABLE_PREFIX.'wish'; // 보관함(위시리스트) 테이블\n"); fwrite($f, "\$g4['shop_mileage_table'] = SHOP_TABLE_PREFIX.'mileage'; // 마일리지 테이블\n"); fwrite($f, "\$g4['shop_coupon_table'] = SHOP_TABLE_PREFIX.'coupon'; // 쿠폰정보 테이블\n"); + fwrite($f, "\$g4['shop_sendcost_table'] = SHOP_TABLE_PREFIX.'sendcost'; // 추가배송비 테이블\n"); fwrite($f, "?>"); } diff --git a/install/shop.sql b/install/shop.sql index d348aae01..2271aa7ae 100644 --- a/install/shop.sql +++ b/install/shop.sql @@ -652,6 +652,26 @@ CREATE TABLE IF NOT EXISTS `shop_mileage` ( KEY `mb_id` (`mb_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; +-- -------------------------------------------------------- + +-- +-- Table structure for table `shop_sendcost` +-- + +DROP TABLE IF EXISTS `shop_sendcost`; +CREATE TABLE IF NOT EXISTS `shop_sendcost` ( + `sc_id` INT(11) NOT NULL AUTO_INCREMENT, + `sc_name` VARCHAR(255) NOT NULL DEFAULT '', + `sc_zip1` VARCHAR(10) NOT NULL DEFAULT '', + `sc_zip2` VARCHAR(10) NOT NULL DEFAULT '', + `sc_amount` INT(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`sc_id`), + KEY `sc_zip1` (`sc_zip1`), + KEY `sc_zip2` (`sc_zip2`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- -------------------------------------------------------- + -- -- Table structure for table `shop_wish` --