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

상단 상품분류 마지막 카데고리 리스트 그대로 보이게 하기 채택완료

삼잇 10년 전 조회 3,513

오랫만에 질문을 드립니다.

여러 고수님들 덕분에 잘 버티고 있습니다..^^

 

다름이 아니라, 상단 상품분류 카데고리에서 분류 마지막일 때 (즉 하위 메뉴가 없을 때), 분류 리스트가 차지하던 영역이 없어지면서 하단의 list.sort.skin.php  등이 위로 딸려 올라오게 되어 있습니다.

 

마지막 분류리스트가 그대로 남으면서 카데고리 영역도 그대로 남기는 방법이 없을 까요?

 

조언 부탁드립니다. 꾸벅~~

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

답변 2개

채택된 답변
+20 포인트
지운아빠
10년 전

listcategory.skin.php 를

listcategory2.skin.php, listcategory3.skin.php 둘 중 하나로 바꿔보세요.

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

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

10년 전

사용하시는 shop 스킨의 listcategory.skin.php 파일에서 

결과값을 가져오는 쿼리 앞단에서 if 조건문을 설정하시면 될듯하네요.

현재 영카트는 하부카테고리설정이 5단계(분류코드 10자리)까지만 가능하도록 되어있으므로..

 

</p><p>$ca_id_len = strlen($ca_id);</p><p>$len2 = $ca_id_len + 2;</p><p>$len4 = $ca_id_len + 4;</p><p> </p><p>$sql = " select ca_id, ca_name from {$g5['g5_shop_category_table']} where ca_id like '$ca_id%' and length(ca_id) = $len2 and ca_use = '1' order by ca_order, ca_id ";</p><p><span style="font-size: 13.63636302948px; line-height: 18.1818180084229px;">

 

위 부분 코드를 아래와 같이 수정하시면 될듯합니다.

 

</span></p><p style="font-size: 13.63636302948px; line-height: 18.1818180084229px;">$ca_id_len = strlen($ca_id);</p><p style="font-size: 13.63636302948px; line-height: 18.1818180084229px;">$len2 = $ca_id_len + 2;</p><p style="font-size: 13.63636302948px; line-height: 18.1818180084229px;">$len4 = $ca_id_len + 4;</p><p style="font-size: 13.63636302948px; line-height: 18.1818180084229px;"> </p><p style="font-size: 13.63636302948px; line-height: 18.1818180084229px;"><span style="font-size: 13.63636302948px; line-height: 18.1818180084229px;">// 추가된 부분</span><span style="font-size: 13.63636302948px; line-height: 18.1818180084229px;">​</span></p><p> </p><p>if ($ca_id_len == 10)</p><div>    $len2 = $ca_id_len;</div><p style="font-size: 13.63636302948px; line-height: 18.1818180084229px;"><span style="font-size: 13.63636302948px; line-height: 18.1818180084229px;"></span><span style="font-size: 13.63636302948px; line-height: 18.1818180084229px;">// 추가된 부분</span><span style="font-size: 13.63636302948px; line-height: 18.1818180084229px;">​</span></p><p style="font-size: 13.63636302948px; line-height: 18.1818180084229px;"><span style="font-size: 13.63636302948px; line-height: 18.1818180084229px;"> </span></p><p style="font-size: 13.63636302948px; line-height: 18.1818180084229px;"><span style="font-size: 13.63636302948px; line-height: 18.1818180084229px;"></span><span style="font-size: 13.63636302948px; line-height: 18.1818180084229px;">$sql = " select ca_id, ca_name from {$g5['g5_shop_category_table']} where ca_id like '$ca_id%' and length(ca_id) = $len2 and ca_use = '1' order by ca_order, ca_id ";</span></p><p style="font-size: 13.63636302948px; line-height: 18.1818180084229px;"><span style="font-size: 13.63636302948px; line-height: 18.1818180084229px;">

 

 

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

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

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

로그인