답변 2개
채택된 답변
+20 포인트
2년 전
</p>
<p>shop.lib.php
.
.
.
// 기본으로 보여지는 필드들
protected $view_it_id = false; // 상품코드
protected $view_it_img = true; // 상품이미지
protected $view_it_name = true; // 상품명
protected $view_it_basic = true; // 기본설명
protected $view_it_price = true; // 판매가격
protected $view_it_cust_price = false; // 소비자가
protected $view_it_icon = false; // 아이콘
protected $view_sns = false; // SNS
protected $view_star = false; // 별점</p>
<p> </p>
<p> protected $it_brand = ''; // 추가
.
.
.
// 외부에서 쿼리문을 넘겨줄 경우에 담아둡니다.
function set_query($query) {
$this->query = $query;
}
하단
function set_brand($brand) {
$this->brand = $brand;
}
추가
.
.
.</p>
<p>if ($this->type) {
$where[] = " it_type{$this->type} = '1' ";
}</p>
<p>하단
if ($this->it_brand) {
$where[] = " it_brand = '{$this->it_brand}' ";
}
추가</p>
<p>list.php
.
.
$list->set_view('it_icon', true);
$list->set_view('sns', true);</p>
<p>쯔음
$list->set_brand($it_brand);</p>
<p>추가
</p>
<p>
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
�
그르릉
2년 전
감사합니다. 소스 활용해서 잘 해결하였습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인