#187 cart 테이블에 it_name 필드 추가

This commit is contained in:
chicpro
2013-05-16 10:17:09 +09:00
parent 0330e4633f
commit 59a802f997
13 changed files with 21 additions and 24 deletions

View File

@ -88,6 +88,7 @@ if ($default['de_card_test']) {
$sql = " select a.ct_id,
a.it_id,
a.it_name,
a.ct_qty,
a.ct_price,
a.ct_point,
@ -100,8 +101,7 @@ $sql = " select a.ct_id,
a.it_opt3,
a.it_opt4,
a.it_opt5,
a.it_opt6,
b.it_name
a.it_opt6
from {$g4['shop_cart_table']} a, {$g4['shop_item_table']} b
where a.uq_id = '{$od['uq_id']}'
and a.it_id = b.it_id

View File

@ -217,8 +217,7 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
<?php
// 상품개별출력
$sql2 = " select c.it_name,
b.*
$sql2 = " select b.*
from {$g4['shop_order_table']} a
left join {$g4['shop_cart_table']} b on (a.uq_id = b.uq_id)
left join {$g4['shop_item_table']} c on (b.it_id = c.it_id)

View File

@ -18,7 +18,6 @@ if ($od_send_mail)
unset($delivery_list);
$sql = " select a.*,
b.it_name,
b.it_opt1_subject,
b.it_opt2_subject,
b.it_opt3_subject,

View File

@ -39,10 +39,9 @@ if ($csv == 'csv')
$to_date = date_conv($to_date);
$sql = " SELECT od_b_zip1, od_b_zip2, od_b_addr1, od_b_addr2, od_b_name, od_b_tel, od_b_hp, it_name, ct_qty, b.it_id, a.od_id, od_memo, od_invoice
FROM {$g4['shop_order_table']} a, {$g4['shop_cart_table']} b, {$g4['shop_item_table']} c
where a.uq_id = b.uq_id
and b.it_id = c.it_id ";
$sql = " SELECT od_b_zip1, od_b_zip2, od_b_addr1, od_b_addr2, od_b_name, od_b_tel, od_b_hp, b.it_name, ct_qty, b.it_id, a.od_id, od_memo, od_invoice
FROM {$g4['shop_order_table']} a, {$g4['shop_cart_table']} b
where a.uq_id = b.uq_id ";
if ($case == 1) // 출력기간
$sql .= " and a.od_time between '$fr_date 00:00:00' and '$to_date 23:59:59' ";
else // 주문번호구간
@ -95,10 +94,9 @@ if ($csv == 'xls')
$to_date = date_conv($to_date);
$sql = " SELECT od_b_zip1, od_b_zip2, od_b_addr1, od_b_addr2, od_b_name, od_b_tel, od_b_hp, it_name, ct_qty, b.it_id, a.od_id, od_memo, od_invoice, b.it_opt1, b.it_opt2, b.it_opt3, b.it_opt4, b.it_opt5, b.it_opt6
FROM {$g4['shop_order_table']} a, {$g4['shop_cart_table']} b, {$g4['shop_item_table']} c
where a.uq_id = b.uq_id
and b.it_id = c.it_id ";
$sql = " SELECT od_b_zip1, od_b_zip2, od_b_addr1, od_b_addr2, od_b_name, od_b_tel, od_b_hp, b.it_name, ct_qty, b.it_id, a.od_id, od_memo, od_invoice, b.it_opt1, b.it_opt2, b.it_opt3, b.it_opt4, b.it_opt5, b.it_opt6
FROM {$g4['shop_order_table']} a, {$g4['shop_cart_table']} b
where a.uq_id = b.uq_id ";
if ($case == 1) // 출력기간
$sql .= " and a.od_time between '$fr_date 00:00:00' and '$to_date 23:59:59' ";
else // 주문번호구간
@ -281,8 +279,7 @@ if (mysql_num_rows($result) == 0)
b.it_opt3_subject,
b.it_opt4_subject,
b.it_opt5_subject,
b.it_opt6_subject,
b.it_name
b.it_opt6_subject
from {$g4['shop_cart_table']} a, {$g4['shop_item_table']} b
where a.it_id = b.it_id
and a.uq_id = '{$row['uq_id']}' ";

View File

@ -59,8 +59,8 @@ $sql = " select a.od_id,
b.ct_point,
(b.ct_qty * b.ct_price) as ct_sub_amount,
(b.ct_qty * b.ct_point) as ct_sub_point,
c.it_id,
c.it_name,
b.it_id,
b.it_name,
c.it_opt1_subject,
c.it_opt2_subject,
c.it_opt3_subject,