diff --git a/adm/shop_admin/itemform.php b/adm/shop_admin/itemform.php index af6891f3e..613eb938c 100644 --- a/adm/shop_admin/itemform.php +++ b/adm/shop_admin/itemform.php @@ -494,6 +494,32 @@ $(function(){ + + + + + 개 + + + + + + + + + + + + + 개 + + + + + + + + diff --git a/adm/shop_admin/itemformupdate.php b/adm/shop_admin/itemformupdate.php index 72bef7836..1b9e73117 100644 --- a/adm/shop_admin/itemformupdate.php +++ b/adm/shop_admin/itemformupdate.php @@ -289,6 +289,8 @@ $sql_common = " ca_id = '$ca_id', it_sc_price = '$it_sc_price', it_sc_minimum = '$it_sc_minimum', it_sc_qty = '$it_sc_qty', + it_buy_min_qty = '$it_buy_min_qty', + it_buy_max_qty = '$it_buy_max_qty', it_head_html = '$it_head_html', it_tail_html = '$it_tail_html', it_mobile_head_html = '$it_mobile_head_html', @@ -437,6 +439,8 @@ if(is_checked('chk_ca_it_point')) $ca_fields .= " , it_point = '$i if(is_checked('chk_ca_it_point_type')) $ca_fields .= " , it_point_type = '$it_point_type' "; if(is_checked('chk_ca_it_stock_qty')) $ca_fields .= " , it_stock_qty = '$it_stock_qty' "; if(is_checked('chk_ca_it_sendcost')) $ca_fields .= " , it_sc_type = '$it_sc_type', it_sc_method = '$it_sc_method', it_sc_price = '$it_sc_price', it_sc_minimum = '$it_sc_minimum', it_sc_qty = '$it_sc_qty' "; +if(is_checked('chk_ca_it_buy_min_qty')) $ca_fields .= " , it_buy_min_qty = '$it_buy_min_qty' "; +if(is_checked('chk_ca_it_buy_max_qty')) $ca_fields .= " , it_buy_max_qty = '$it_buy_max_qty' "; if(is_checked('chk_ca_it_head_html')) $ca_fields .= " , it_head_html = '$it_head_html' "; if(is_checked('chk_ca_it_tail_html')) $ca_fields .= " , it_tail_html = '$it_tail_html' "; if(is_checked('chk_ca_it_mobile_head_html')) $ca_fields .= " , it_mobile_head_html = '$it_mobile_head_html' "; @@ -469,6 +473,8 @@ if(is_checked('chk_all_it_point')) $all_fields .= " , it_point = ' if(is_checked('chk_all_it_point_type')) $all_fields .= " , it_point_type = '$it_point_type' "; if(is_checked('chk_all_it_stock_qty')) $all_fields .= " , it_stock_qty = '$it_stock_qty' "; if(is_checked('chk_all_it_sendcost')) $all_fields .= " , it_sc_type = '$it_sc_type', it_sc_method = '$it_sc_method', it_sc_price = '$it_sc_price', it_sc_minimum = '$it_sc_minimum', it_sc_qty = '$it_sc_qty' "; +if(is_checked('chk_all_it_buy_min_qty')) $all_fields .= " , it_buy_min_qty = '$it_buy_min_qty' "; +if(is_checked('chk_all_it_buy_max_qty')) $all_fields .= " , it_buy_max_qty = '$it_buy_max_qty' "; if(is_checked('chk_all_it_head_html')) $all_fields .= " , it_head_html = '$it_head_html' "; if(is_checked('chk_all_it_tail_html')) $all_fields .= " , it_tail_html = '$it_tail_html' "; if(is_checked('chk_all_it_mobile_head_html')) $all_fields .= " , it_mobile_head_html = '$it_mobile_head_html' "; diff --git a/extend/shop.extend2.php b/extend/shop.extend2.php index 141e2419a..f58e4af70 100644 --- a/extend/shop.extend2.php +++ b/extend/shop.extend2.php @@ -553,4 +553,11 @@ if(!sql_query(" select ca_cert_use from {$g5['g5_shop_category_table']} limit 1 ADD `ca_cert_use` tinyint(4) NOT NULL DEFAULT '0' AFTER `ca_mb_id`, ADD `ca_adult_use` tinyint(4) NOT NULL DEFAULT '0' AFTER `ca_cert_use` ", true); } + +// 최소 최대구매수량 필드추가 +if(!sql_query(" select it_buy_min_qty from {$g5['g5_shop_item_table']} limit 1 ", false)) { + sql_query(" ALTER TABLE `{$g5['g5_shop_item_table']}` + ADD `it_buy_min_qty` int(11) NOT NULL DEFAULT '0' AFTER `it_sc_qty`, + ADD `it_buy_max_qty` int(11) NOT NULL DEFAULT '0' AFTER `it_buy_min_qty` ", true); +} ?> diff --git a/mobile/skin/shop/basic/item.form.skin.php b/mobile/skin/shop/basic/item.form.skin.php index b977edebb..3015f3232 100644 --- a/mobile/skin/shop/basic/item.form.skin.php +++ b/mobile/skin/shop/basic/item.form.skin.php @@ -211,23 +211,46 @@ if ($row['it_id']) { - - - - - - - 1) { + if($it['it_sc_method'] == 1) + $sc_method = '수령후 지불'; + else if($it['it_sc_method'] == 2) { + $ct_send_cost_label = ''; + $sc_method = ''; } - ?> - - - + else + $sc_method = '주문시 결제'; + } + ?> + + + + + + + 최소구매수량 + 개 + + + + + 최대구매수량 + 개 + + @@ -278,7 +301,11 @@ if ($row['it_id']) {
- +