1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
|
<?php Global $custinfo, $od_id, $list_array, $total_page, $list_num, $total_count; qstr_extract($_SERVER['QUERY_STRING']); // $qstr을 $_GET변수에 넣는다. extract($_GET); // $_GET를 변수로 풀어준다. $cate = urldecode($cate);
$cur_img_url = $j3_img_url."/".$sk['sk_img_path'];
$tot_deli_pirce = $list_array[0]['tot_deli_price']; // 전체배송비 가져옴
if($skin_css!=''){ echo $skin_css; } else { ?> <!-- 상단 카테고리 내 위치 --> <style>
</style> <?php }?> <div class="class_skin_idx_<?php echo $sk_idx;?>"> <!-- 장바구니 시작 { --> <div class="pt50"> <!-- 최근 주문내역 시작 { --> <section> <!-- 주문 내역 목록 시작 { --> <form name='cart_list_form' id='cart_list_form' method='post' onsubmit='return false;'> <input type='hidden' name='sel_del' id='sel_del' value=''> <table class="width_full top_bold_line"> <colgroup> <col class=""> <col class="width100"> <col class="width500 ellipsis"> <col class="width100"> <col class="width100">
<!--<col class="width80">--> <col class="width80"> <col class="width10"> <col class="width100"> </colgroup> <thead> <tr> <th scope="col" class="p15_0 txt14 gray_line_b"><label class="screen_out">전체</label><input type="checkbox" class='check_all_class'></th> <th scope="col" class="p15_0 txt14 gray_line_b">상품이미지</th> <th scope="col" class="p15_0 txt14 gray_line_b">상품정보</th> <th scope="col" class="p15_0 txt14 gray_line_b">총수량</th> <th scope="col" class="p15_0 txt14 gray_line_b">판매가</th> <!--<th scope="col" class="p15_0 txt14 gray_line_b">할인액</th>--> <th scope="col" class="p15_0 txt14 gray_line_b">포인트</th> <th scope="col" class="p15_0 txt14 gray_line_b">배송비</th> <th scope="col" class="p15_0 txt14 gray_line_b">관리</th> </tr> </thead> <tbody> <?php $cnt = 0; if($configshop['deli_type']=='f'){ $deli_price = "무료배송"; } $all_price = 0; $all_point = 0; $not_free_deli_price = 0; for($i=0;$i<count($list_array);$i++){ $info = $list_array[$i]; if($info['idx']!=''){
$opt_name = ""; $addopt_name = ""; $t_qty = $info['ct_qty']; $t_point = $info['ct_qty']*$info['ct_point']; /*if($info['opt_mode']!=''){ $t_price = $info['ct_qty']*$info['opt_price']; } else { $t_price = $info['ct_qty']*$info['ct_price']; }*/ $t_price = $info['ct_tot_amt'];
$ii = $i+1;
if($info['opt_mode']=='opt'){ if($info['opt_price']>0){ $buho = "+"; } else { $buho = ""; } $opt_name = $info['opt_name']."({$buho}".number_format($info['opt_price']).")<br>"; } else if($info['opt_mode']=='addopt'){ $addopt_name = $info['opt_name']."({$buho}".number_format($info['opt_price']).")<br>"; } if($info['opt_mode']!=''){ // 옵션상품일경우 옵션정보를 받아온다. if($info['opt_price']>0){ $buho = "+"; } else { $buho = ""; } }
while($list_array[$ii]['pcode']==$info['pcode'] && $list_array[$ii]['ev_code']==$info['ev_code']){ // 단일 상품이 아닌 여러옵션이나 추가옵션있는지 확인한다. $nextinfo = $list_array[$ii]; $t_qty += $nextinfo['ct_qty']; if($nextinfo['opt_price']>0){ $buho = "+"; } else { $buho = ""; } if($nextinfo['opt_mode']=='opt'){ $opt_name .= $addtitle." ".$nextinfo['opt_name']."({$buho}".number_format($nextinfo['opt_price']).")<br>"; } else { $addopt_name .= "(추가) ".$nextinfo['opt_name']."({$buho}".number_format($nextinfo['opt_price']).")<br>"; } //$t_price += $nextinfo['ct_qty']*$nextinfo['opt_price']; $t_price += $nextinfo['ct_tot_amt']; $t_point += $nextinfo['ct_qty']*$nextinfo['ct_point'];
if($ii==100){ break; } $ii++; } $i=$ii-1;
$it_href = $j3_shop_url."/item.php?code=".$info['code1']; $all_price += $t_price; $all_point += $t_point;
if($deli_price=="무료배송"){ $p_deli_price = $deli_price; } else { if($info['ct_deli_type']=='1'){ $p_deli_price = "무료배송"; } else { $p_deli_price = "금액에따른 차등"; $not_free_deli_price += $t_price; } }
$info['jego'] = product_jego_get($info['pcode']); // 재고 받아옴 ?> <tr> <td class="p15_0 align_c gray_line_b2"><label class="screen_out">선택</label> <input type='checkbox' name='code_idx[]' value='<?php echo $cnt;?>' class='code_idx_calss'> <input type='hidden' name='codes[]' value='<?php echo $info['idx'];?>'> <input type='hidden' name='od_ids[]' value='<?php echo $od_id;?>'> <input type='hidden' name='pcode[]' value='<?php echo $info['pcode'];?>'> <input type='hidden' name='jego[]' value='<?php echo $info['jego'];?>'> <input type='hidden' name='p_min_buy[]' value='<?php echo $info['p_min_buy'];?>'> <input type='hidden' name='p_max_buy[]' value='<?php echo $info['p_max_buy'];?>'> <input type='hidden' name='p_pack_buy[]' value='<?php echo $info['p_pack_buy'];?>'> <input type='hidden' name='p_ev_code[]' value='<?php echo $info['ev_code'];?>'> </td> <td class="p15_0 txt14 align_c gray_line_b2"><a href='<?php echo $it_href;?>'><img src="<?php echo $thumb_file = get_it_thumbnail($info['pcode'],$info['pic1'],80,80);?>" class="box80" alt=""></a></td> <td class="p15_10 txt14 gray2 gray_line_b2"> <p class="mb10 txt15 bold"><?php echo $info['ct_name'];?></p> <p class="mt5 txt13"><?php echo $info['norm'];?></p> <p class="mb5 gray bold l_height20"> <?php echo $opt_name;?> </p> <?php if($info['opt_mode']!='' || $addopt_name){?> <a class="mb10 box150_25 white txt14 align_c bold l_height25 bg_custom1 opt_ch_class">주문조건 추가/변경</a> <?php }?> <?php if($addopt_name!=''){?> <p class="gray2 bold"><?php echo $addopt_name;?></p> <?php }?> </td> <td class=" p15_0 txt14 gray2 gray_line_b2"> <div class="relative box96_27 float_c" style=""> <input type="text" name='ct_qty[]' title="구매수량" value="<?php echo $t_qty;?>" class="absolute ab_top_left27 box38_25 gray_line align_c"> <a class="absolute ab_top_left64 box28_25 <?php if($info['opt_mode']=='' && $addopt_name==''){?>qty_plus_class<?php }?>" style="background: url('<?php echo $cur_img_url;?>/item.png') no-repeat 0px -39px;"></a> <a class="absolute ab_top_left box28_25 <?php if($info['opt_mode']=='' && $addopt_name==''){?>qty_minus_class<?php }?>" style="background: url('<?php echo $cur_img_url;?>/item.png') no-repeat 0px -15px;"></a> <?php if($info['opt_mode']=='' && $addopt_name==''){?> <a class="absolute ab_top30_left box96_27 gray2 txt14 align_c bold l_height25 gray_line qty_ch_class">변경</a> <?php }?> </div> </td> <td class="p15_0 txt14 gray2 align_c gray_line_b2"><?php echo number_format($t_price);?>원</td> <!--<td class="p15_0 txt14 gray2 align_c gray_line_b2 bg_gray">1500원</td>--> <td class="p15_0 txt14 gray2 align_c gray_line_b2 bg_gray"><?php echo number_format($t_point);?>원</td> <td class="p15_0 txt14 align_c gray_line_b2 bg_gray"><?php echo $p_deli_price; ?></td> <td class="p15_0 txt14 gray2 align_c bold gray_line_b2 bg_gray"> <a class="mt5 box80_25 white align_c bold l_height25 bg_custom2 cart_del_class">삭제</a> </td> </tr> <?php $cnt++; } } if($cnt==0){ // 장바구니가 없을때 ?> <tr> <td colspan="8" class="p100_0 txt14 gray2 align_c gray_line_b2">장바구니에 담긴 상품이 없습니다.</td> </tr> <?php }
if($tot_deli_pirce>0){ $deli_price_title = "(+)".number_format($tot_deli_pirce); } else { $deli_price_title = "0"; } $total_price = $all_price+$tot_deli_pirce; ?> </tbody> <tfoot> <tr> <td colspan="5" class="p15_0 txt13 gray2 v_align_t gray_line_b2"> <?php if($configshop['po_use']=='1'){ // 포인트 사용시만 보임?> <span class="p3_15 white txt11 bg_gray3 circle">적립혜택</span> 구매확정 시 <span class="custom2 cost3"><?php echo number_format($all_point);?></span> 포인트 적립 <?php }?> </td> <td colspan="4" class="p15_10 l_height20 gray_line_b2 bg_custom2"> <p><label class="white txt13">총 상품금액</label><span class="float_r white cost3"><?php echo number_format($all_price);?></span></p> <p><label class="white txt13">배송비</label><span class="float_r white cost3"><?php echo $deli_price_title;?></span></p> <!--<p><label class="white txt13">총 할인금액</label><span class="float_r white cost3">(-)1,500</span></p>--> <p class="mt15"><label class="white txt16 bold">결제금액</label><span class="float_r white cost1"><?php echo number_format($total_price);?></span></p> </td> </tr> </tfoot> </table> </form> <!-- } 주문 내역 목록 끝 -->
<!--버튼--> <div class="mt20"> <div class="float_l"> <a class="float_l mr10 box150_40 custom2 align_c bold l_height40 custom_line2 bg_white cart_sel_del_class">선택제품삭제</a> </div> <div class="float_r"> <a class="float_l mr10 box150_40 custom2 align_c bold l_height40 custom_line2 bg_white shop_continue_class">쇼핑계속하기</a> <a class="float_l mr10 box150_40 custom2 align_c bold l_height40 custom_line2 bg_white cart_sel_order_class">선택주문하기</a> <a class="float_l box150_40 white align_c bold l_height40 bg_custom2 cart_order_class">전체주문하기</a> </div> </div> <!--//버튼--> </section> <!-- } 최근 주문내역 끝 --> </div> <!-- } 장바구니 끝 --> </div>
|