상품 배송비 설정에서 배송비 결제 사용자가 선택할 수 있도록 수정

This commit is contained in:
chicpro
2014-02-07 12:59:23 +09:00
parent f15ecc14b4
commit d4f0c9b274
3 changed files with 20 additions and 16 deletions

View File

@ -1013,6 +1013,13 @@ $(function(){
$(function() {
<?php
switch($it['it_sc_type']) {
case 1:
echo '$("#sc_con_method").hide();'.PHP_EOL;
echo '$("#sc_con_basic").hide();'.PHP_EOL;
echo '$("#sc_con_minimum").hide();'.PHP_EOL;
echo '$("#sc_con_qty").hide();'.PHP_EOL;
echo '$("#sc_grp").attr("rowspan","1");'.PHP_EOL;
break;
case 2:
echo '$("#sc_con_method").show();'.PHP_EOL;
echo '$("#sc_con_basic").show();'.PHP_EOL;
@ -1035,11 +1042,11 @@ $(function(){
echo '$("#sc_grp").attr("rowspan","4");'.PHP_EOL;
break;
default:
echo '$("#sc_con_method").hide();'.PHP_EOL;
echo '$("#sc_con_method").show();'.PHP_EOL;
echo '$("#sc_con_basic").hide();'.PHP_EOL;
echo '$("#sc_con_minimum").hide();'.PHP_EOL;
echo '$("#sc_con_qty").hide();'.PHP_EOL;
echo '$("#sc_grp").attr("rowspan","1");'.PHP_EOL;
echo '$("#sc_grp").attr("rowspan","2");'.PHP_EOL;
break;
}
?>
@ -1047,6 +1054,13 @@ $(function(){
var type = $(this).val();
switch(type) {
case "1":
$("#sc_con_method").hide();
$("#sc_con_basic").hide();
$("#sc_con_minimum").hide();
$("#sc_con_qty").hide();
$("#sc_grp").attr("rowspan","1");
break;
case "2":
$("#sc_con_method").show();
$("#sc_con_basic").show();
@ -1069,11 +1083,11 @@ $(function(){
$("#sc_grp").attr("rowspan","4");
break;
default:
$("#sc_con_method").hide();
$("#sc_con_method").show();
$("#sc_con_basic").hide();
$("#sc_con_minimum").hide();
$("#sc_con_qty").hide();
$("#sc_grp").attr("rowspan","1");
$("#sc_grp").attr("rowspan","2");
break;
}
});

View File

@ -145,14 +145,9 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<?php
$ct_send_cost_label = '배송비결제';
if($default['de_send_cost_case'] == '무료')
$sc_method = '무료배송';
else
$sc_method = '주문시 결제';
if($it['it_sc_type'] == 1)
$sc_method = '무료배송';
else if($it['it_sc_type'] > 1) {
else {
if($it['it_sc_method'] == 1)
$sc_method = '수령후 지불';
else if($it['it_sc_method'] == 2) {

View File

@ -158,14 +158,9 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<?php
$ct_send_cost_label = '배송비결제';
if($default['de_send_cost_case'] == '무료')
$sc_method = '무료배송';
else
$sc_method = '주문시 결제';
if($it['it_sc_type'] == 1)
$sc_method = '무료배송';
else if($it['it_sc_type'] > 1) {
else {
if($it['it_sc_method'] == 1)
$sc_method = '수령후 지불';
else if($it['it_sc_method'] == 2) {