상품정보에 상점메모 필드 추가
This commit is contained in:
@ -100,6 +100,12 @@ if(!sql_query(" select it_supply_point from {$g5['g5_shop_item_table']} limit 1
|
||||
ADD `it_supply_point` int(11) NOT NULL DEFAULT '0' AFTER `it_point_type` ", true);
|
||||
}
|
||||
|
||||
// 상품메모 필드 추가
|
||||
if(!sql_query(" select it_shop_memo from {$g5['g5_shop_item_table']} limit 1 ", false)) {
|
||||
sql_query(" ALTER TABLE `{$g5['g5_shop_item_table']}`
|
||||
ADD `it_shop_memo` text NOT NULL AFTER `it_use_avg` ", true);
|
||||
}
|
||||
|
||||
$pg_anchor ='<ul class="anchor">
|
||||
<li><a href="#anc_sitfrm_cate">상품분류</a></li>
|
||||
<li><a href="#anc_sitfrm_skin">스킨설정</a></li>
|
||||
@ -463,6 +469,16 @@ if(!sql_query(" select it_skin from {$g5['g5_shop_item_table']} limit 1", false)
|
||||
<label for="chk_all_it_sell_email">전체적용</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="it_shop_memo">상점메모</label></th>
|
||||
<td><textarea name="it_shop_memo" id="it_shop_memo"><?php echo $it['it_shop_memo']; ?></textarea></td>
|
||||
<td class="td_grpset">
|
||||
<input type="checkbox" name="chk_ca_it_shop_memo" value="1" id="chk_ca_it_shop_memo">
|
||||
<label for="chk_ca_it_shop_memo">분류적용</label>
|
||||
<input type="checkbox" name="chk_all_it_shop_memo" value="1" id="chk_all_it_shop_memo">
|
||||
<label for="chk_all_it_shop_memo">전체적용</label>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@ -313,6 +313,7 @@ $sql_common = " ca_id = '$ca_id',
|
||||
it_tel_inq = '$it_tel_inq',
|
||||
it_info_gubun = '$it_info_gubun',
|
||||
it_info_value = '$it_info_value',
|
||||
it_shop_memo = '$it_shop_memo',
|
||||
it_img1 = '$it_img1',
|
||||
it_img2 = '$it_img2',
|
||||
it_img3 = '$it_img3',
|
||||
@ -468,6 +469,7 @@ if(is_checked('chk_ca_it_brand')) $ca_fields .= " , it_brand = '$i
|
||||
if(is_checked('chk_ca_it_model')) $ca_fields .= " , it_model = '$it_model' ";
|
||||
if(is_checked('chk_ca_it_notax')) $ca_fields .= " , it_notax = '$it_notax' ";
|
||||
if(is_checked('chk_ca_it_sell_email')) $ca_fields .= " , it_sell_email = '$it_sell_email' ";
|
||||
if(is_checked('chk_ca_it_shop_memo')) $ca_fields .= " , it_shop_memo = '$it_shop_memo' ";
|
||||
if(is_checked('chk_ca_it_tel_inq')) $ca_fields .= " , it_tel_inq = '$it_tel_inq' ";
|
||||
if(is_checked('chk_ca_it_use')) $ca_fields .= " , it_use = '$it_use' ";
|
||||
if(is_checked('chk_ca_it_nocoupon')) $ca_fields .= " , it_nocoupon = '$it_nocoupon' ";
|
||||
@ -519,6 +521,7 @@ if(is_checked('chk_all_it_brand')) $all_fields .= " , it_brand = '
|
||||
if(is_checked('chk_all_it_model')) $all_fields .= " , it_model = '$it_model' ";
|
||||
if(is_checked('chk_all_it_notax')) $all_fields .= " , it_notax = '$it_notax' ";
|
||||
if(is_checked('chk_all_it_sell_email')) $all_fields .= " , it_sell_email = '$it_sell_email' ";
|
||||
if(is_checked('chk_all_it_shop_memo')) $all_fields .= " , it_shop_memo = '$it_shop_memo' ";
|
||||
if(is_checked('chk_all_it_tel_inq')) $all_fields .= " , it_tel_inq = '$it_tel_inq' ";
|
||||
if(is_checked('chk_all_it_use')) $all_fields .= " , it_use = '$it_use' ";
|
||||
if(is_checked('chk_all_it_nocoupon')) $all_fields .= " , it_nocoupon = '$it_nocoupon' ";
|
||||
|
||||
@ -423,6 +423,7 @@ CREATE TABLE IF NOT EXISTS `g5_shop_item` (
|
||||
`it_sum_qty` int(11) NOT NULL DEFAULT '0',
|
||||
`it_use_cnt` int(11) NOT NULL DEFAULT '0',
|
||||
`it_use_avg` DECIMAL(2,1) NOT NULL,
|
||||
`it_shop_memo` text NOT NULL,
|
||||
`it_img1` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_img2` varchar(255) NOT NULL DEFAULT '',
|
||||
`it_img3` varchar(255) NOT NULL DEFAULT '',
|
||||
|
||||
Reference in New Issue
Block a user