테스트 사이트 - 개발 중인 베타 버전입니다

shop.lip.php 에서 ca_id 불러오기... 채택완료

업시 9년 전 조회 5,307

이전에도 ca_id 불러오기로 질문을 남겼었는데,

shop.lip.php 에서도 ca_id를 붙혀줘야 되더라고요.... 

 

shop.lip.php 103~118줄, 437~438줄

 

</span></p><p>    // $type        : 상품유형 (기본으로 1~5까지 사용)</p><p>    // $list_skin   : 상품리스트를 노출할 스킨을 설정합니다. 스킨위치는 skin/shop/쇼핑몰설정스킨/type??.skin.php</p><p>    // $list_mod    : 1줄에 몇개의 상품을 노출할지를 설정합니다.</p><p>    // $list_row    : 상품을 몇줄에 노출할지를 설정합니다.</p><p>    // $img_width   : 상품이미지의 폭을 설정합니다.</p><p>    // $img_height  : 상품이미지의 높이을 설정합니다. 0 으로 설정하는 경우 썸네일 이미지의 높이는 폭에 비례하여 생성합니다.</p><p>    //function __construct($type=0, $list_skin='', $list_mod='', $list_row='', $img_width='', $img_height=0, $ca_id='') {</p><p>    function __construct($list_skin='', $list_mod='', $list_row='', $img_width='', $img_height=0) {</p><p>        $this->list_skin  = $list_skin;</p><p>        $this->list_mod   = $list_mod;</p><p>        $this->list_row   = $list_row;</p><p>        $this->img_width  = $img_width;</p><p>        $this->img_height = $img_height;</p><p>        $this->set_href(G5_SHOP_URL.'/item.php?it_id=');</p><p>        $this->count++;</p><p>    }</p><p style="margin-left: 40px;">// 437~438줄</p><p style="margin-left: 40px;">if($anchor)</p><p style="margin-left: 40px;">        $img = '<a href="'.G5_SHOP_URL.'/item.php?it_id='.$it_id.'">'.$img.'</a>';</p><p><span style="font-size: 11pt; line-height: 1.5;">

 

$this->set_href(G5_SHOP_URL.'/item.php?이부분에it_id=');

$this->set_href(G5_SHOP_URL.'/item.php?&ca_id='.$row['ca_id'].'it_id='); 

 

$img = '이부분에">'.$img.'';

$img = '&ca_id='.$row['ca_id'].'">'.$img.''; 

 

이런식으로 붙혀줬지만 작동을 안하더라고요...

다른부분에서 수정해을 해줘야하는 건지 작동시키는 php가 틀린건지 잘 모르겠습니다.

 

&ca_id={$row['ca_id']} 이걸 사용하자니 오류가 뜨고요.

ca_id를 못불러오는건지... 잘 모르겠습니다...

 

도와주세요!

 

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

테스트는 못해봤지만..

 

이렇게 해보세요.

 

 

function __construct($list_skin='', $list_mod='', $list_row='', $img_width='', $img_height=0) {

 

        global $ca;

        $this->list_skin  = $list_skin;

        $this->list_mod   = $list_mod;

        $this->list_row   = $list_row;

        $this->img_width  = $img_width;

        $this->img_height = $img_height;

        $this->set_href(G5_SHOP_URL.'/item.php?ca_id='.$ca['ca_id'].'&it_id=');

        $this->count++;

    }

 

 

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

업시
9년 전
적용은 되지만 주소창에서 확인해보면 ca_id= 밖에 안뜹니다 ㅠㅠ

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인