diff --git a/adm/shop_admin/itemformupdate.php b/adm/shop_admin/itemformupdate.php index 388c4e552..21819a130 100644 --- a/adm/shop_admin/itemformupdate.php +++ b/adm/shop_admin/itemformupdate.php @@ -316,6 +316,22 @@ if($option_count) { $it_option = implode(',', $arr_opt1); } +// 추가옵션 +sql_query(" delete from {$g4['shop_item_option_table']} where io_type = '1' and it_id = '$it_id' "); // 기존추가옵션삭제 + +$supply_count = count($_POST['spl_id']); +if($supply_count) { + // 추가옵션명 + $arr_spl = array(); + for($i=0; $i<$supply_count; $i++) { + $spl_val = explode(chr(30), $_POST['spl_id'][$i]); + if(!in_array($spl_val[0], $arr_spl)) + $arr_spl[] = $spl_val[0]; + } + + $it_supply_subject = implode(',', $arr_spl); +} + // 상품요약정보 $value_array = array(); for($i=0; $i