¿µÄ«Æ®5 »óǰºÐ·ù Ãß°¡ sir.co.kr °³¹ß : ¸ÂÀ»²¨¾ß ÀúÀÛ±Ç : ±×µý°Å ¾øÀ½. ±×³É ÆíÇÏ°Ô ¾²¼¼¿µ. ÆÛ°¥¶© °³¹ßÀÚ Ç¥±â ²ÀÇØÁÖ¼¼¿ä ÇìÇò ^^ 1. DB Çʵå Ãß°¡ (phpmyadmin µî ÀÌ¿ë) ALTER TABLE `g5_shop_item` ADD `ca_id4` VARCHAR( 255 ) NOT NULL AFTER `ca_id3` ; ALTER TABLE `g5_shop_item` ADD `ca_id5` VARCHAR( 255 ) NOT NULL AFTER `ca_id4` ; ALTER TABLE `g5_shop_item` ADD `ca_id6` VARCHAR( 255 ) NOT NULL AFTER `ca_id5` ; 2. lib/shop.lib.php ¼öÁ¤ //set_category ÇÔ¼ö ¼öÁ¤ function set_category($ca_id, $level=1) { if ($level == 2) { $this->ca_id2 = $ca_id; } else if ($level == 3) { $this->ca_id3 = $ca_id; } else if ($level == 4) { $this->ca_id4 = $ca_id; } else if ($level == 5) { $this->ca_id5 = $ca_id; } else if ($level == 6) { $this->ca_id6 = $ca_id; } else { $this->ca_id = $ca_id; } } // run() ÇÔ¼ö ¼öÁ¤ // add ca_id4,5,6 if ($this->ca_id || $this->ca_id2 || $this->ca_id3 || $this->ca_id4 || $this->ca_id5 || $this->ca_id6) { $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}%' "; } if ($this->ca_id4) { $where_ca_id[] = " ca_id4 like '{$this->ca_id4}%' "; } if ($this->ca_id5) { $where_ca_id[] = " ca_id5 like '{$this->ca_id5}%' "; } if ($this->ca_id6) { $where_ca_id[] = " ca_id6 like '{$this->ca_id6}%' "; } $where[] = " ( " . implode(" or ", $where_ca_id) . " ) "; } 3. Á¦Ç° ºÒ·¯¿À´Â ºÎºÐ¿¡ Ä«Å×°í¸® Ãß°¡ // shop/list.php Ãß°¡ // mobile/shop/list.php ¿¡µµ Ãß°¡ set_list_skin(G5_SHOP_SKIN_PATH.'/list.10.skin.php'); $list->set_img_size('179','180'); $list->set_category('50', 1); $list->set_category('50', 2); $list->set_category('50', 3); // Ãß°¡ÇҺκР½ÃÀÛ --- $list->set_category('50', 4); // 3¹ø Ä«Å×°í¸® Ãß°¡ $list->set_category('50', 5); // 4¹ø Ä«Å×°í¸® Ãß°¡ $list->set_category('50', 6); // 5¹ø Ä«Å×°í¸® Ãß°¡ // Ãß°¡ÇҺκР³¡ --- $list->set_view('it_id', false); $list->set_view('it_name', true); $list->set_view('it_basic', true); $list->set_view('it_cust_price', true); $list->set_view('it_price', true); $list->set_view('it_icon', true); $list->set_view('sns', true); echo $list->run(); ?> 4. °ü¸®ÀÚ ¸ðµå ¼öÁ¤ - adm/shop_admin/itemform.php ¼öÁ¤ //16¶óÀÎÂë Ãß°¡ $it['ca_id4'] = get_cookie("ck_ca_id4"); $it['ca_id5'] = get_cookie("ck_ca_id5"); $it['ca_id6'] = get_cookie("ck_ca_id6"); // 200¶óÀÎÂë ¼öÁ¤