쇼핑몰: #195 상품상세 선택/추가 옵션 마크업 완료

This commit is contained in:
whitedot
2013-05-27 11:27:44 +09:00
parent 9599aae0e4
commit 93562dc7ee
2 changed files with 12 additions and 10 deletions

View File

@ -490,8 +490,6 @@ input.required:focus {border:1px solid #b8c9c2;background:#21272e !important;col
#sit_title {margin:0 0 5px;font-size:1.3em}
#sit_desc {margin:0 0 5px;padding:0;color:#999}
#sit_opt_info {/* sound_only 처리 필요 */}
.sit_icon {display:block;margin:5px 0 0}
.sit_icon img {margin:0 1px 0 0;border:1px solid #fff}
#sit_star_sns {position:absolute;top:15px;right:15px;color:#b8afa2;font-size:0.95em;letter-spacing:-0.1em}
#sit_star_sns span {display:inline-block;margin:0 5px 0 0;color:#666;letter-spacing:0}
@ -512,6 +510,12 @@ input.required:focus {border:1px solid #b8c9c2;background:#21272e !important;col
.td_sit_sel {position:relative}
.sit_sel_submit {position:absolute;top:8px;right:0}
#sit_opt_added {margin:0;padding:0;list-style:none}
#sit_opt_added li {margin:0 0 10px;padding:0 0 10px;border-bottom:1px solid #e9e9e9}
#sit_opt_added li div {margin:5px 0 0;text-align:right}
#sit_tot_price {margin:20px 0;font-size:1.3em;font-weight:bold}
#sit_ov_btn {margin:0 0 0 34px !important;margin:0 0 0 33px;padding:0;list-style:none;zoom:1}
#sit_ov_btn:after {display:block;visibility:hidden;clear:both;content:""}
#sit_ov_btn li {float:left;margin:0 0 0 1px}

View File

@ -325,7 +325,6 @@ else
</tbody>
</table>
<!-- ########## 선택옵션이 있을 때만 출력 - 지운아빠 2013-05-24 -->
<?php
$option_1 = get_item_options($it['it_id'], $it['it_option_subject']);
if($option_1) {
@ -350,9 +349,7 @@ else
<?php
}
?>
<!-- ########## 선택옵션이 있을 때만 출력 끝 -->
<!-- ########## 추가옵션이 있을 때만 출력 - 지운아빠 2013-05-24 -->
<?php
$option_2 = get_item_supply($it['it_id'], $it['it_supply_subject']);
if($option_2) {
@ -374,13 +371,14 @@ else
<?php
}
?>
<!-- ########## 추가옵션이 있을 때만 출력 끝 -->
<?php } // 전화문의가 아닐 경우 끝 ?>
<?php } // 갤러리가 아닐 경우 끝 ?>
<?php if ($option_1 || $option_2) { // 선택옵션이나 추가옵션이 있다면 ?>
<div id="sit_sel_option"></div>
<?php } ?>
<script>
$(function() {
@ -651,10 +649,10 @@ else
opt += "<input type=\"hidden\" name=\"io_stock[]\" value=\""+stock+"\">\n";
opt += "<span class=\"sit_opt_subj\">"+option+"</span>\n";
opt += "<span class=\"sit_opt_prc\">"+opt_prc+"</span>\n";
opt += "<input type=\"text\" name=\"ct_qty[]\" value=\"1\" size=\"5\">\n";
opt += "<button type=\"button\" class=\"sit_qty_plus\">증가</button>\n";
opt += "<button type=\"button\" class=\"sit_qty_minus\">감소</button>\n";
opt += "<button type=\"button\" class=\"sit_opt_del\">삭제</button>\n";
opt += "<div><input type=\"text\" name=\"ct_qty[]\" value=\"1\" class=\"frm_input\" size=\"5\">\n";
opt += "<button type=\"button\" class=\"sit_qty_plus btn_frmline\">증가</button>\n";
opt += "<button type=\"button\" class=\"sit_qty_minus btn_frmline\">감소</button>\n";
opt += "<button type=\"button\" class=\"sit_opt_del btn_frmline\">삭제</button></div>\n";
opt += "</li>\n";
if($("#sit_sel_option > ul").size() < 1) {