#187 cart 테이블에 it_name 필드 추가
This commit is contained in:
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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']}' ";
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -42,6 +42,7 @@ $goods_count = -1;
|
||||
|
||||
// $s_uq_id 로 현재 장바구니 자료 쿼리
|
||||
$sql = " select a.ct_id,
|
||||
a.it_name,
|
||||
a.it_opt1,
|
||||
a.it_opt2,
|
||||
a.it_opt3,
|
||||
@ -53,7 +54,6 @@ $sql = " select a.ct_id,
|
||||
a.ct_qty,
|
||||
a.ct_status,
|
||||
b.it_id,
|
||||
b.it_name,
|
||||
b.ca_id
|
||||
from {$g4['shop_cart_table']} a,
|
||||
{$g4['shop_item_table']} b
|
||||
|
||||
@ -27,7 +27,7 @@ $error = "";
|
||||
// 1.03.07 : and a.it_id = b.it_id : where 조건문에 이 부분 추가
|
||||
$sql = " select a.it_id,
|
||||
a.ct_qty,
|
||||
b.it_name
|
||||
a.it_name
|
||||
from {$g4['shop_cart_table']} a,
|
||||
{$g4['shop_item_table']} b
|
||||
where a.uq_id = '$tmp_uq_id'
|
||||
|
||||
@ -5,7 +5,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<table cellpadding=0 cellspacing=0 bgcolor=#FFFFFF>
|
||||
<tr><td><a href='<?php echo G4_SHOP_URL; ?>/cart.php'><img src='<?php echo G4_SHOP_URL; ?>/img/bar_cart.gif' border=0></a></td></tr>
|
||||
<?php
|
||||
$hsql = " select a.it_id, b.it_name, a.ct_qty from {$g4['shop_cart_table']} a, {$g4['shop_item_table']} b
|
||||
$hsql = " select a.it_id, a.it_name, a.ct_qty from {$g4['shop_cart_table']} a, {$g4['shop_item_table']} b
|
||||
where a.uq_id = '".get_session('ss_uq_id')."'
|
||||
and a.it_id = b.it_id
|
||||
order by a.ct_id ";
|
||||
|
||||
@ -43,6 +43,7 @@ $goods_count = -1;
|
||||
|
||||
// $s_uq_id 로 현재 장바구니 자료 쿼리
|
||||
$sql = " select a.ct_id,
|
||||
a.it_name,
|
||||
a.it_opt1,
|
||||
a.it_opt2,
|
||||
a.it_opt3,
|
||||
@ -54,7 +55,6 @@ $sql = " select a.ct_id,
|
||||
a.ct_qty,
|
||||
a.ct_status,
|
||||
b.it_id,
|
||||
b.it_name,
|
||||
b.ca_id
|
||||
from {$g4['shop_cart_table']} a,
|
||||
{$g4['shop_item_table']} b
|
||||
|
||||
@ -125,6 +125,7 @@ else if ($act == "multi") // 온라인견적(등)에서 여러개의 상품이
|
||||
$sql = " insert {$g4['shop_cart_table']}
|
||||
set uq_id = '$tmp_uq_id',
|
||||
it_id = '{$_POST['it_id'][$i]}',
|
||||
it_name = '{$_POST['it_name'][$i]}',
|
||||
ct_status = '쇼핑',
|
||||
ct_price = '{$_POST['it_price'][$i]}',
|
||||
ct_point = '{$_POST['it_point'][$i]}',
|
||||
@ -217,6 +218,7 @@ else // 장바구니에 담기
|
||||
$sql = " insert {$g4['shop_cart_table']}
|
||||
set uq_id = '$tmp_uq_id',
|
||||
it_id = '{$_POST['it_id']}',
|
||||
it_name = '{$_POST['it_name']}',
|
||||
it_opt1 = '{$_POST['it_opt1']}',
|
||||
it_opt2 = '{$_POST['it_opt2']}',
|
||||
it_opt3 = '{$_POST['it_opt3']}',
|
||||
|
||||
@ -23,7 +23,7 @@ $error = "";
|
||||
// 1.03.07 : and a.it_id = b.it_id : where 조건문에 이 부분 추가
|
||||
$sql = " select a.it_id,
|
||||
a.ct_qty,
|
||||
b.it_name
|
||||
a.it_name
|
||||
from {$g4['shop_cart_table']} a,
|
||||
{$g4['shop_item_table']} b
|
||||
where a.uq_id = '$tmp_uq_id'
|
||||
|
||||
@ -12,7 +12,7 @@ $ttotal_point = 0;
|
||||
// Loop 배열 자료를 만들고
|
||||
$sql = " select b.it_sell_email,
|
||||
a.it_id,
|
||||
b.it_name,
|
||||
a.it_name,
|
||||
b.it_origin,
|
||||
a.it_opt1,
|
||||
a.it_opt2,
|
||||
|
||||
@ -36,7 +36,7 @@ mailer($config['cf_title'], $admin['mb_email'], $od_email, $subject, $content, 1
|
||||
|
||||
$sql = " select b.it_sell_email,
|
||||
a.it_id,
|
||||
b.it_name,
|
||||
a.it_name,
|
||||
a.it_opt1,
|
||||
a.it_opt2,
|
||||
a.it_opt3,
|
||||
|
||||
Reference in New Issue
Block a user