주문상세 배송조회 링크 추가
This commit is contained in:
@ -422,12 +422,12 @@ $result = sql_query($sql);
|
||||
</tr>
|
||||
<?php if ($od['od_invoice']) { ?>
|
||||
<tr>
|
||||
<th scope="row">운송장번호</th>
|
||||
<td><?php echo $od['od_invoice']; ?></td>
|
||||
<th scope="row">배송회사</th>
|
||||
<td><?php echo $od['od_delivery_company']; ?> <?php echo get_delivery_inquiry($od['od_delivery_company'], $od['od_invoice']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">배송회사</th>
|
||||
<td><?php echo $od['od_delivery_company']; ?></td>
|
||||
<th scope="row">운송장번호</th>
|
||||
<td><?php echo $od['od_invoice']; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
|
||||
@ -1994,6 +1994,35 @@ function shop_member_cert_check($id, $type)
|
||||
}
|
||||
|
||||
|
||||
// 배송조회버튼 생성
|
||||
function get_delivery_inquiry($company, $invoice, $class='')
|
||||
{
|
||||
if(!$company || !$invoice)
|
||||
return '';
|
||||
|
||||
$dlcomp = explode(")", str_replace("(", "", G5_DELIVERY_COMPANY));
|
||||
|
||||
for($i=0; $i<count($dlcomp); $i++) {
|
||||
if(strstr($dlcomp[$i], $company)) {
|
||||
list($com, $url, $tel) = explode("^", $dlcomp[$i]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$str = '';
|
||||
if($com && $url) {
|
||||
$str .= '<a href="'.$url.$invoice.'" target="_blank"';
|
||||
if($class)
|
||||
$str .= ' class="'.$class.'"';
|
||||
$str .='>배송조회</a>';
|
||||
if($tel)
|
||||
$str .= ' (문의전화: '.$tel.')';
|
||||
}
|
||||
|
||||
return $str;
|
||||
}
|
||||
|
||||
|
||||
// 사용후기의 확인된 건수를 상품테이블에 저장합니다.
|
||||
function update_use_cnt($it_id)
|
||||
{
|
||||
|
||||
@ -470,7 +470,7 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">배송회사</th>
|
||||
<td><?php echo $od['od_delivery_company']; ?></td>
|
||||
<td><?php echo $od['od_delivery_company']; ?> <?php echo get_delivery_inquiry($od['od_delivery_company'], $od['od_invoice']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">운송장번호</th>
|
||||
|
||||
@ -481,7 +481,7 @@ if(openwin != null) {
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">배송회사</th>
|
||||
<td><?php echo $od['od_delivery_company']; ?></td>
|
||||
<td><?php echo $od['od_delivery_company']; ?> <?php echo get_delivery_inquiry($od['od_delivery_company'], $od['od_invoice']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">운송장번호</th>
|
||||
|
||||
Reference in New Issue
Block a user