|
@@ -1058,12 +1181,6 @@ function categorychange(f)
//f.it_explan_html[ca_explan_html[idx]].checked = true;
f.it_stock_qty.value = ca_stock_qty[idx];
f.it_sell_email.value = ca_sell_email[idx];
- f.it_opt1_subject.value = ca_opt1_subject[idx];
- f.it_opt2_subject.value = ca_opt2_subject[idx];
- f.it_opt3_subject.value = ca_opt3_subject[idx];
- f.it_opt4_subject.value = ca_opt4_subject[idx];
- f.it_opt5_subject.value = ca_opt5_subject[idx];
- f.it_opt6_subject.value = ca_opt6_subject[idx];
}
}
diff --git a/adm/shop_admin/itemformupdate.php b/adm/shop_admin/itemformupdate.php
index ececa7307..388c4e552 100644
--- a/adm/shop_admin/itemformupdate.php
+++ b/adm/shop_admin/itemformupdate.php
@@ -289,6 +289,33 @@ sql_query(" delete from {$g4['shop_item_relation_table']} where it_id2 = '$it_id
// 이벤트상품을 우선 삭제함
sql_query(" delete from {$g4['shop_event_item_table']} where it_id = '$it_id' ");
+// 선택옵션
+sql_query(" delete from {$g4['shop_item_option_table']} where io_type = '0' and it_id = '$it_id' "); // 기존선택옵션삭제
+
+$option_count = count($_POST['opt_id']);
+if($option_count) {
+ // 실재하는 1차 옵션항목
+ $arr_opt1 = array();
+ $opt2_cnt = $opt3_cnt = 0;
+ for($i=0; $i<$option_count; $i++) {
+ $opt_val = explode(chr(30), $_POST['opt_id'][$i]);
+ if(!in_array($opt_val[0], $arr_opt1))
+ $arr_opt1[] = $opt_val[0];
+ if($opt_val[1])
+ $opt2_cnt++;
+ if($opt_val[2])
+ $opt3_cnt++;
+ }
+
+ $it_option_subject = $opt1_subject;
+ if($opt2_subject && $opt2_cnt)
+ $it_option_subject .= ','.$opt2_subject;
+ if($opt3_subject && $opt3_cnt)
+ $it_option_subject .= ','.$opt3_subject;
+
+ $it_option = implode(',', $arr_opt1);
+}
+
// 상품요약정보
$value_array = array();
for($i=0; $i
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
|