배송조회에서 대신택배의 링크값 에러수정을 어떻게 해야할까요?
본문
대신택배조회 주소가 아래와 같이 링크를 보니..조회가 제대로 안되네요.
아래와 같이 변경하니깐 잘 되는데 프로그램 소스를 어떻게 수정해야할지 몰라서 질문드립니다.
운송장번호는 임시로 바꿔놨습니다.
답변 1
/lib/shop.lib.php 파일에
function get_delivery_inquiry($company, $invoice, $class='') 함수를 수정해줘야 합니다.
$str = '';
if($com && $url) {
if($com=="대신택배") {
$invoice = substr($invoice,0,4)."&billno2=".substr($invoice,4,3)."&billno3=".substr($invoice,7,6);
}
$str .= '<a href="'.$url.$invoice.'" target="_blank"';
if($class)
$str .= ' class="'.$class.'"';
$str .='>배송조회</a>';
if($tel)
$str .= ' (문의전화: '.$tel.')';
}
!-->
답변을 작성하시기 전에 로그인 해주세요.