답변 1개 / 댓글 3개
채택된 답변
+20 포인트
/lib/shop.lib.php 파일에 아래 부분에 추가
$where[] = " ca_id not like '1010%' and ca_id2 not like '1010%' and ca_id3 not like '1010%' ";
Copy
if ($this->ca_id || $this->ca_id2 || $this->ca_id3) {
$where_ca_id = array();
if ($this->ca_id) {
$where_ca_id[] = " ca_id like '{$this->ca_id}%' ";
}
if ($this->ca_id2) {
$where_ca_id[] = " ca_id2 like '{$this->ca_id2}%' ";
}
if ($this->ca_id3) {
$where_ca_id[] = " ca_id3 like '{$this->ca_id3}%' ";
}
$where[] = " ( " . implode(" or ", $where_ca_id) . " ) ";
}
$where[] = " ca_id not like '1010%' and ca_id2 not like '1010%' and ca_id3 not like '1010%' ";
답변에 대한 댓글 3개
답변을 작성하려면 로그인이 필요합니다.