yilmaz70hata dosyasını teke satırını ikiye düşürdüm olay bu iki satırda/catalog/controller/extension/module/adv_ajaxfilter. php model dosyasında düzelttim ama aynı işlemi controllerde yapmıyor $min_price = $this->currency->convert($min_price $this->k, $this->config->get , $this->currency->getCode ; $max_price = $this->currency->convert($max_price $this->k, $this->config->get , $this->currency->getCode ;model dosyası :class ModelModuleAdvajaxfilter extends Model { private $adv_ajaxfilter_setting; public function __construct { parent::__construct ; $this->adv_ajaxfilter_setting = $this->config->get ; if(VERSION == '1.5.0') } public function getAttributes { $sql = "SELECT DISTINCT pa. text, a.`attribute_id`, ad.`name`, ag. attribute_group_id, agd. name as attribute_group_name FROM `" . DB_PREFIX. "product_attribute` pa" . " LEFT JOIN " . DB_PREFIX. "attribute a ON " . " LEFT JOIN " . DB_PREFIX. "attribute_description ad ON " . " LEFT JOIN " . DB_PREFIX. "attribute_group ag ON " . " LEFT JOIN " . DB_PREFIX. "attribute_group_description agd ON " . " LEFT JOIN " . DB_PREFIX. "product p ON ". " LEFT JOIN " . DB_PREFIX. "product_description pd ON "; if $sql.= " LEFT JOIN " . DB_PREFIX. "product_to_store p2s ON(p. product_id=p2s. product_id) "; $sql.= " WHERE p. status = '1' AND p. date_available <= NOW AND p2s. store_id =" . $this->config->get ; if if if (isset and! empty { $words = explode(' ', trim(preg_replace ; foreach } $sql.= " AND pa. language_id = '" . $this->config->get . "'" . " AND ad. language_id = '" . $this->config->get . "'" . " AND agd. language_id = '" . $this->config->get . "'" . " ORDER BY ag. sort_order, agd. name, a. sort_order, ad. name, pa. text"; $query = $this->db->query ; $attributes = array ; foreach { if(! isset if(! isset $row = htmlspecialchars_decode ; foreach(explode as $text) { if(! in_array } } foreach { foreach } return $attributes; } public function getManufacturers { if $sql = "SELECT DISTINCT m.`manufacturer_id`, m.`name`, m.`image` FROM `" . DB_PREFIX. "manufacturer` m" . " LEFT JOIN " . DB_PREFIX. "product p ON ". " LEFT JOIN " . DB_PREFIX. "product_description pd ON "; if $sql.= " LEFT JOIN " . DB_PREFIX. "product_to_store p2s ON(p. product_id=p2s. product_id) " . " WHERE p. status = '1' AND p. date_available <= NOW AND p2s. store_id = " . $this->config->get ; if if (isset and! empty { $words = explode(' ', trim(preg_replace ; foreach } $sql.= " ORDER BY m. sort_order, m. name"; $query = $this->db->query ; return $query->rows; } public function getTags { $sql = "SELECT CONCAT(p2t.`tag`, ' (', count , ')') as 'name', p2t. tag FROM `" . DB_PREFIX. "product_tag` p2t" . " LEFT JOIN " . DB_PREFIX. "product p ON(p. product_id=p2t.`product_id`) ". " LEFT JOIN " . DB_PREFIX. "product_description pd ON "; if $sql.= " LEFT JOIN " . DB_PREFIX. "product_to_store p2s ON(p. product_id=p2s. product_id) " . " WHERE p. status = '1' AND p2t. language_id = '" . $this->config->get . "' AND p. date_available <= NOW AND p2s. store_id =" . $this->config->get ; if if if (isset and! empty { $words = explode(' ', trim(preg_replace ; foreach } $sql.= " GROUP BY p2t.`tag` ORDER BY p2t.`tag`"; $query = $this->db->query ; return $query->rows; } public function getSubCategories { $sql = "SELECT DISTINCT cd. category_id, CONCAT(cd. name, ' (', COUNT , ')' ) AS 'name' FROM `" . DB_PREFIX. "category` c" . " LEFT JOIN " . DB_PREFIX. "category_description cd ON " . " LEFT JOIN " . DB_PREFIX. "product_to_category p2c ON(c. category_id=p2c. category_id) " . " LEFT JOIN " . DB_PREFIX. "product p ON(p. product_id=p2c.`product_id`) " . " LEFT JOIN " . DB_PREFIX. "product_description pd ON ". " LEFT JOIN " . DB_PREFIX. "product_to_store p2s ON(p. product_id=p2s. product_id) " . " WHERE c. status=1 AND c. parent_id = '" . $data . "' AND cd. language_id = '" . $this->config->get . "' AND p. status = '1' AND p. date_available <= NOW AND p2s. store_id =" . $this->config->get ; if $sql.= " GROUP BY cd. category_id ORDER BY `c`.`sort_order`, `cd`.`name`"; $query = $this->db->query ; return $query->rows; } public function getOptions { $sql_image = ", ov. image"; if(version_compare("1513", VERSION)<0) $sql = "SELECT DISTINCT ovd. option_value_id, ovd. , od. name as 'option_name'" . $sql_image. " FROM `" . DB_PREFIX. "option_value_description` ovd LEFT JOIN " . DB_PREFIX. "option_value ov ON LEFT JOIN " . DB_PREFIX. "option_description od ON LEFT JOIN `" . DB_PREFIX. "option` o ON LEFT JOIN " . DB_PREFIX. "product_option_value pov ON LEFT JOIN " . DB_PREFIX. "product p ON LEFT JOIN " . DB_PREFIX. "product_description pd ON "; if $sql.= "LEFT JOIN " . DB_PREFIX. "product_to_store p2s ON(p. product_id=p2s. product_id) WHERE ovd. language_id = '" . $this->config->get . "' AND od. language_id = '" . $this->config->get . "' AND p. status = '1' AND p. date_available <= NOW AND p2s. store_id =" . $this->config->get ; if if if (isset and! empty { $words = explode(' ', trim(preg_replace ; foreach } $sql.= " ORDER BY o. sort_order, ov. sort_order, ovd. option_id "; $query = $this->db->query ; $options = array ; foreach { if(! isset if(version_compare("1513", VERSION)<0) $options[$row ] = array ; } return $options; } public function getPriceLimits { $customer_group_id = $this->getCustomerGroup ; $sql = "SELECT max(coalesce((SELECT price FROM " . DB_PREFIX. "product_discount pd2 WHERE pd2. product_id = p. product_id AND pd2. customer_group_id = '" . $customer_group_id. "' AND pd2. quantity = '1' AND ((pd2. date_start = '0000-00-00' OR pd2. date_start < NOW AND (pd2. date_end = '0000-00-00' OR pd2. date_end > NOW ORDER BY pd2. priority ASC, pd2. price ASC LIMIT 1), " . "(SELECT price FROM " . DB_PREFIX. "product_special ps WHERE ps. product_id = p. product_id AND ps. customer_group_id = '" . $customer_group_id. "' AND ((ps. date_start = '0000-00-00' OR ps. date_start < NOW AND (ps. date_end = '0000-00-00' OR ps. date_end > NOW ORDER BY ps. priority ASC, ps. price ASC LIMIT 1), " . "p. price) ) AS max_price, min(coalesce((SELECT price FROM " . DB_PREFIX. "product_discount pd2 WHERE pd2. product_id = p. product_id AND pd2. customer_group_id = '" . $customer_group_id. "' AND pd2. quantity = '1' AND ((pd2. date_start = '0000-00-00' OR pd2. date_start < NOW AND (pd2. date_end = '0000-00-00' OR pd2. date_end > NOW ORDER BY pd2. priority ASC, pd2. price ASC LIMIT 1), " . "(SELECT price FROM " . DB_PREFIX. "product_special ps WHERE ps. product_id = p. product_id AND ps. customer_group_id = '" . $customer_group_id. "' AND ((ps. date_start = '0000-00-00' OR ps. date_start < NOW AND (ps. date_end = '0000-00-00' OR ps. date_end > NOW ORDER BY ps. priority ASC, ps. price ASC LIMIT 1), " . "p. price) ) AS min_price FROM " . DB_PREFIX. "product p" . " LEFT JOIN " . DB_PREFIX. "product_option_value pov ON " . " LEFT JOIN " . DB_PREFIX. "product_description pd ON " . " LEFT JOIN " . DB_PREFIX. "product_to_store p2s ON (p2s. product_id=p. product_id)"; if if(isset and $this->request->post == 'product/special') $sql.= " WHERE p. status = '1' AND p. date_available <= NOW AND p2s. store_id = " . $this->config->get ; if if if (isset and! empty { $words = explode(' ', trim(preg_replace ; foreach } if(isset and $this->request->post == 'product/special') $query = $this->db->query ; return $query->row; } public function getTotalProducts { $customer_group_id = $this->getCustomerGroup ; $sql = "SELECT count as total FROM " . "(SELECT DISTINCT p. product_id, coalesce((SELECT price FROM " . DB_PREFIX. "product_discount pd2 WHERE pd2. product_id = p. product_id AND pd2. customer_group_id = '" . $customer_group_id. "' AND pd2. quantity = '1' AND ((pd2. date_start = '0000-00-00' OR pd2. date_start < NOW AND (pd2. date_end = '0000-00-00' OR pd2. date_end > NOW ORDER BY pd2. priority ASC, pd2. price ASC LIMIT 1), " . "(SELECT price FROM " . DB_PREFIX. "product_special ps WHERE ps. product_id = p. product_id AND ps. customer_group_id = '" . $customer_group_id. "' AND ((ps. date_start = '0000-00-00' OR ps. date_start < NOW AND (ps. date_end = '0000-00-00' OR ps. date_end > NOW ORDER BY ps. priority ASC, ps. price ASC LIMIT 1), " . " p. price) as realprice " . " FROM " . DB_PREFIX. "product p" . " LEFT JOIN " . DB_PREFIX. "product_description pd ON ". " LEFT JOIN " . DB_PREFIX. "product_option_value pov ON " . " LEFT JOIN " . DB_PREFIX. "product_to_store p2s ON (p2s. product_id=p. product_id)" . " LEFT JOIN " . DB_PREFIX. "product_to_category p2c ON (p2c. product_id=p. product_id)"; if if(isset and $this->request->post == 'product/special') if $sql.= " WHERE 1"; if(isset and $this->request->post == 'product/special') if if (isset and! empty { $words = explode(' ', trim(preg_replace ; foreach } if $option_filters = array ; if { foreach } if { if { foreach } else } if $d = $this->adv_ajaxfilter_setting ; if { if { $i = 0; foreach { if else { foreach } } } else { foreach $sql.= " AND (" . implode . ")"; } } if { $i = 0; foreach { if(! isset elseif(! isset else $i++; } } if($data >= 0) if { //todo:: add and/or for filter and filter group if { $array_filter = array ; $array_group = array ; foreach { //$sql.= " AND pf. filter_id IN (" . implode . ")"; foreach $array_group = '( '. implode . ')'; $array_filter = array ; } $test = " AND ". implode ; $sql.= " AND ". implode ; } else{ //todo:: add and/or for filter and filter group $array = array ; foreach $sql.= " AND pf. filter_id IN (" . implode . ")"; } } $sql.= " AND p. status = '1' AND p. date_available <= NOW AND p2s. store_id = " . $this->config->get ; $sql.= ") as innertable WHERE 1 "; if($data >= 0) if($data > 0) $query = $this->db->query ; return $query->row ; } private function getCustomerGroup { if($this->customer->isLogged else } public function getTotalManufacturers { $customer_group_id = $this->getCustomerGroup ; $sql = "SELECT count as total, manufacturer_id FROM " . "(SELECT DISTINCT p. product_id, m. manufacturer_id, coalesce((SELECT price FROM " . DB_PREFIX. "product_discount pd2 WHERE pd2. product_id = p. product_id AND pd2. customer_group_id = '" . $customer_group_id. "' AND pd2. quantity = '1' AND ((pd2. date_start = '0000-00-00' OR pd2. date_start < NOW AND (pd2. date_end = '0000-00-00' OR pd2. date_end > NOW ORDER BY pd2. priority ASC, pd2. price ASC LIMIT 1), " . "(SELECT price FROM " . DB_PREFIX. "product_special ps WHERE ps. product_id = p. product_id AND ps. customer_group_id = '" . $customer_group_id. "' AND ((ps. date_start = '0000-00-00' OR ps. date_start < NOW AND (ps. date_end = '0000-00-00' OR ps. date_end > NOW ORDER BY ps. priority ASC, ps. price ASC LIMIT 1), " . "p. price) as realprice " . " FROM " . DB_PREFIX. "product p" . " LEFT JOIN " . DB_PREFIX. "product_description pd ON ". " LEFT JOIN " . DB_PREFIX. "manufacturer m ON " . " LEFT JOIN " . DB_PREFIX. "product_option_value pov ON " . " LEFT JOIN " . DB_PREFIX. "product_to_store p2s ON (p2s. product_id=p. product_id)" . " LEFT JOIN " . DB_PREFIX. "product_to_category p2c ON (p2c. product_id=p. product_id)"; $sql.= " LEFT JOIN " . DB_PREFIX. "product_attribute p2a ON (p2a. product_id=p. product_id)"; if(isset and $this->request->post == 'product/special') if $sql.= " WHERE 1"; if(isset and $this->request->post == 'product/special') if if if (isset and! empty { $words = explode(' ', trim(preg_replace ; foreach } $option_filters = array ; if { foreach } if { if { foreach } else } $d = $this->adv_ajaxfilter_setting ; if { if { $i = 0; foreach { if else { foreach } } } else { foreach $sql.= " AND (" . implode . ")"; } } if { $i = 0; foreach { if(! isset elseif(! isset else $i++; } } if($data >= 0) if { //todo:: add and/or for filter and filter group $array = array ; foreach $sql.= " AND pf. filter_id IN (" . implode . ")"; } $sql.= " AND p. status = '1' AND p. date_available <= NOW AND p2s. store_id = " . $this->config->get ; $sql.= ") as innertable WHERE 1 "; if($data >= 0) if($data > 0) $sql.= " GROUP BY " . "manufacturer_id"; $query = $this->db->query ; $result = array ; foreach return $result; } public function getTotalTags { $customer_group_id = $this->getCustomerGroup ; $sql = "SELECT CONCAT(`tag`, ' (', count , ')') as 'name', tag FROM " . "(SELECT DISTINCT p. product_id, tag, coalesce((SELECT price FROM " . DB_PREFIX. "product_discount pd2 WHERE pd2. product_id = p. product_id AND pd2. customer_group_id = '" . $customer_group_id. "' AND pd2. quantity = '1' AND ((pd2. date_start = '0000-00-00' OR pd2. date_start < NOW AND (pd2. date_end = '0000-00-00' OR pd2. date_end > NOW ORDER BY pd2. priority ASC, pd2. price ASC LIMIT 1), " . "(SELECT price FROM " . DB_PREFIX. "product_special ps WHERE ps. product_id = p. product_id AND ps. customer_group_id = '" . $customer_group_id. "' AND ((ps. date_start = '0000-00-00' OR ps. date_start < NOW AND (ps. date_end = '0000-00-00' OR ps. date_end > NOW ORDER BY ps. priority ASC, ps. price ASC LIMIT 1), " . "p. price) as realprice " . " FROM " . DB_PREFIX. "product p" . " LEFT JOIN " . DB_PREFIX. "product_description pd ON ". " LEFT JOIN " . DB_PREFIX. "manufacturer m ON " . " LEFT JOIN " . DB_PREFIX. "product_option_value pov ON " . " LEFT JOIN " . DB_PREFIX. "product_to_store p2s ON (p2s. product_id=p. product_id)" . " LEFT JOIN " . DB_PREFIX. "product_to_category p2c ON (p2c. product_id=p. product_id)"; $sql.= " LEFT JOIN " . DB_PREFIX. "product_attribute p2a ON (p2a. product_id=p. product_id)"; $sql.= " LEFT JOIN " . DB_PREFIX. "product_tag p2t ON (p2t. product_id=p. product_id)"; if(isset and $this->request->post == 'product/special') if $sql.= " WHERE 1"; if(isset and $this->request->post == 'product/special') if if if if (isset and! empty { $words = explode(' ', trim(preg_replace ; foreach } $option_filters = array ; if { foreach } if { if { foreach } else } $d = $this->adv_ajaxfilter_setting ; if { if { $i = 0; foreach { if else { foreach } } } else { foreach $sql.= " AND (" . implode . ")"; } } if { $i = 0; foreach { if(! isset elseif(! isset else $i++; } } if($data >= 0) if { //todo:: add and/or for filter and filter group $array = array ; foreach $sql.= " AND pf. filter_id IN (" . implode . ")"; } $sql.= " AND p2t. language_id = '" . $this->config->get . "' AND p. status = '1' AND p. date_available <= NOW AND p2s. store_id = " . $this->config->get ; $sql.= ") as innertable WHERE 1 "; if($data >= 0) if($data > 0) $sql.= " GROUP BY `tag` ORDER BY `tag`"; $query = $this->db->query ; foreach { if($data && in_array } return $query->rows; } public function getTotalCategories { $customer_group_id = $this->getCustomerGroup ; $sql = "SELECT CONCAT(`name`, ' (', count , ')') as 'name', `category_id` FROM " . "(SELECT DISTINCT p. product_id, cd. name, cd. category_id, c. sort_order, coalesce((SELECT price FROM " . DB_PREFIX. "product_discount pd2 WHERE pd2. product_id = p. product_id AND pd2. customer_group_id = '" . $customer_group_id. "' AND pd2. quantity = '1' AND ((pd2. date_start = '0000-00-00' OR pd2. date_start < NOW AND (pd2. date_end = '0000-00-00' OR pd2. date_end > NOW ORDER BY pd2. priority ASC, pd2. price ASC LIMIT 1), " . "(SELECT price FROM " . DB_PREFIX. "product_special ps WHERE ps. product_id = p. product_id AND ps. customer_group_id = '" . $customer_group_id. "' AND ((ps. date_start = '0000-00-00' OR ps. date_start < NOW AND (ps. date_end = '0000-00-00' OR ps. date_end > NOW ORDER BY ps. priority ASC, ps. price ASC LIMIT 1), " . "p. price) as realprice " . " FROM " . DB_PREFIX. "product p" . " LEFT JOIN " . DB_PREFIX. "product_description pd ON ". " LEFT JOIN " . DB_PREFIX. "manufacturer m ON " . " LEFT JOIN " . DB_PREFIX. "product_option_value pov ON " . " LEFT JOIN " . DB_PREFIX. "product_to_store p2s ON (p2s. product_id=p. product_id)" . " LEFT JOIN " . DB_PREFIX. "product_to_category p2c ON (p2c. product_id=p. product_id)" . " LEFT JOIN `" . DB_PREFIX. "category` c ON(p2c. category_id=c. category_id) " . " LEFT JOIN " . DB_PREFIX. "category_description cd ON "; $sql.= " LEFT JOIN " . DB_PREFIX. "product_attribute p2a ON (p2a. product_id=p. product_id)"; if(isset and $this->request->post == 'product/special') if $sql.= " WHERE 1"; if(isset and $this->request->post == 'product/special') if if if (isset and! empty { $words = explode(' ', trim(preg_replace ; foreach } $option_filters = array ; if { foreach } if { if { foreach } else } $d = $this->adv_ajaxfilter_setting ; if { if { $i = 0; foreach { if else { foreach } } } else { foreach $sql.= " AND (" . implode . ")"; } } if { $i = 0; foreach { if(! isset elseif(! isset else $i++; } } if($data >= 0) if { //todo:: add and/or for filter and filter group $array = array ; foreach $sql.= " AND pf. filter_id IN (" . implode . ")"; } $sql.= " AND c. status=1 AND c. parent_id = '" . $category_id. "' AND cd. language_id = '" . $this->config->get . "' AND p. status = '1' AND p. date_available <= NOW AND p2s. store_id = " . $this->config->get ; $sql.= ") as innertable WHERE 1 "; if($data >= 0) if($data > 0) $sql.= " GROUP BY category_id ORDER BY sort_order, name"; $query = $this->db->query ; foreach { if($data && in_array } return $query->rows; } public function getTotalAttributes { $customer_group_id = $this->getCustomerGroup ; $sql = "SELECT count as total, attribute_id, text FROM " . "(SELECT DISTINCT p. product_id, p2a. attribute_id, p2a. text, coalesce((SELECT price FROM " . DB_PREFIX. "product_discount pd2 WHERE pd2. product_id = p. product_id AND pd2. customer_group_id = '" . $customer_group_id. "' AND pd2. quantity = '1' AND ((pd2. date_start = '0000-00-00' OR pd2. date_start < NOW AND (pd2. date_end = '0000-00-00' OR pd2. date_end > NOW ORDER BY pd2. priority ASC, pd2. price ASC LIMIT 1), " . "(SELECT price FROM " . DB_PREFIX. "product_special ps WHERE ps. product_id = p. product_id AND ps. customer_group_id = '" . $customer_group_id. "' AND ((ps. date_start = '0000-00-00' OR ps. date_start < NOW AND (ps. date_end = '0000-00-00' OR ps. date_end > NOW ORDER BY ps. priority ASC, ps. price ASC LIMIT 1), " . "p. price) as realprice " . " FROM " . DB_PREFIX. "product p" . " LEFT JOIN " . DB_PREFIX. "product_description pd ON ". " LEFT JOIN " . DB_PREFIX. "manufacturer m ON " . " LEFT JOIN " . DB_PREFIX. "product_option_value pov ON " . " LEFT JOIN " . DB_PREFIX. "product_to_store p2s ON (p2s. product_id=p. product_id)" . " LEFT JOIN " . DB_PREFIX. "product_to_category p2c ON (p2c. product_id=p. product_id)"; $sql.= " LEFT JOIN " . DB_PREFIX. "product_attribute p2a ON (p2a. product_id=p. product_id)"; if(isset and $this->request->post == 'product/special') if $sql.= " WHERE 1"; if(isset and $this->request->post == 'product/special') if if if if (isset and! empty { $words = explode(' ', trim(preg_replace ; foreach } $d = $this->adv_ajaxfilter_setting ; if { if { $i = 0; foreach { if else { foreach } } } } if { $i = 0; foreach { if(! isset elseif(! isset else $i++; } } $option_filters = array ; if { foreach } if { if { foreach } else } if($data >= 0) if { //todo:: add and/or for filter and filter group $array = array ; foreach $sql.= " AND pf. filter_id IN (" . implode . ")"; } $sql.= " AND p. status = '1' AND p. date_available <= NOW AND p2a. language_id='" . $this->config->get . "' AND p2s. store_id = " . $this->config->get ; $sql.= ") as innertable WHERE 1 "; if($data >= 0) if($data > 0) $sql.= " GROUP BY " . "attribute_id, text"; $query = $this->db->query ; $result = array ; $attributes = array ; foreach { $row = htmlspecialchars_decode ; foreach(explode as $text) { if(! isset else } } foreach return $result; } public function getTotalOptions { $customer_group_id = $this->getCustomerGroup ; $sql = "SELECT count as total, option_value_id FROM " . "(SELECT DISTINCT p. product_id, pov. option_value_id, coalesce((SELECT price FROM " . DB_PREFIX. "product_discount pd2 WHERE pd2. product_id = p. product_id AND pd2. customer_group_id = '" . $customer_group_id. "' AND pd2. quantity = '1' AND ((pd2. date_start = '0000-00-00' OR pd2. date_start < NOW AND (pd2. date_end = '0000-00-00' OR pd2. date_end > NOW ORDER BY pd2. priority ASC, pd2. price ASC LIMIT 1), " . "(SELECT price FROM " . DB_PREFIX. "product_special ps WHERE ps. product_id = p. product_id AND ps. customer_group_id = '" . $customer_group_id. "' AND ((ps. date_start = '0000-00-00' OR ps. date_start < NOW AND (ps. date_end = '0000-00-00' OR ps. date_end > NOW ORDER BY ps. priority ASC, ps. price ASC LIMIT 1), " . "p. price) as realprice " . " FROM " . DB_PREFIX. "product p" . " LEFT JOIN " . DB_PREFIX. "product_description pd ON ". " LEFT JOIN " . DB_PREFIX. "manufacturer m ON " . " LEFT JOIN " . DB_PREFIX. "product_option_value pov ON " . " LEFT JOIN " . DB_PREFIX. "product_to_store p2s ON (p2s. product_id=p. product_id)" . " LEFT JOIN " . DB_PREFIX. "product_to_category p2c ON (p2c. product_id=p. product_id)"; $sql.= " LEFT JOIN " . DB_PREFIX. "product_attribute p2a ON (p2a. product_id=p. product_id)"; if(isset and $this->request->post == 'product/special') if $sql.= " WHERE 1"; if(isset and $this->request->post == 'product/special') if if if if (isset and! empty { $words = explode(' ', trim(preg_replace ; foreach } $d = $this->adv_ajaxfilter_setting ; if { if { $i = 0; foreach } else { foreach $sql.= " AND (" . implode . ")"; } } if { $i = 0; foreach { if(! isset elseif(! isset else $i++; } } if($data >= 0) if { //todo:: add and/or for filter and filter group $array = array ; foreach $sql.= " AND pf. filter_id IN (" . implode . ")"; } $sql.= " AND p. status = '1' AND p. date_available <= NOW AND p2s. store_id = " . $this->config->get ; $sql.= ") as innertable WHERE 1 "; if($data >= 0) if($data > 0) $sql.= " GROUP BY " . "option_value_id"; $query = $this->db->query ; $result = array ; foreach return $result; } public function getProducts { $customer_group_id = $this->getCustomerGroup ; $sql = "SELECT product_id FROM("; $sql.= "SELECT DISTINCT p. product_id, pd. name, p. model, p. quantity, p. price, p. sort_order, p. date_added "; if(isset && $data == "rating") $sql.= ", coalesce((SELECT price FROM " . DB_PREFIX. "product_discount pd2 WHERE pd2. product_id = p. product_id AND pd2. customer_group_id = '" . $customer_group_id. "' AND pd2. quantity = '1' AND ((pd2. date_start = '0000-00-00' OR pd2. date_start < NOW AND (pd2. date_end = '0000-00-00' OR pd2. date_end > NOW ORDER BY pd2. priority ASC, pd2. price ASC LIMIT 1), " . "(SELECT price FROM " . DB_PREFIX. "product_special ps WHERE ps. product_id = p. product_id AND ps. customer_group_id = '" . $customer_group_id. "' AND ((ps. date_start = '0000-00-00' OR ps. date_start < NOW AND (ps. date_end = '0000-00-00' OR ps. date_end > NOW ORDER BY ps. priority ASC, ps. price ASC LIMIT 1), " . "p. price) as realprice "; $sql.= "FROM " . DB_PREFIX. "product p" . " LEFT JOIN " . DB_PREFIX. "product_option_value pov ON " . " LEFT JOIN " . DB_PREFIX. "product_description pd ON " . " LEFT JOIN " . DB_PREFIX. "product_to_store p2s ON (p2s. product_id=p. product_id)" . " LEFT JOIN " . DB_PREFIX. "product_to_category p2c ON (p2c. product_id=p. product_id)"; if if(isset and $this->request->post == 'product/special') if $sql.= " WHERE 1"; if(isset and $this->request->post == 'product/special') if if $option_filters = array ; if { foreach } if { if { foreach } else } if $d = $this->adv_ajaxfilter_setting ; if { if { $i = 0; foreach { if else { foreach } } } else { foreach $sql.= " AND (" . implode . ")"; } } if { $i = 0; foreach { if(! isset elseif(! isset else $i++; } } if($data >= 0) if { //todo:: add and/or for filter and filter group if { $array_filter = array ; $array_group = array ; foreach { //$sql.= " AND pf. filter_id IN (" . implode . ")"; foreach $array_group = '( '. implode . ')'; $array_filter = array ; } $test = " AND ". implode ; $sql.= " AND ". implode ; } else{ //todo:: add and/or for filter and filter group $array = array ; foreach $sql.= " AND pf. filter_id IN (" . implode . ")"; } } $sql.= " AND pd. language_id = '" . $this->config->get . "' AND p. status = '1' AND p. date_available <= NOW AND p2s. store_id = " . $this->config->get ; if (isset and! empty { $words = explode(' ', trim(preg_replace ; foreach } $sort_data = array ; $sql.= ") as innertable WHERE 1 "; if($data >= 0) if($data > 0) if(isset and $this->request->post == 'product/latest') else{ if(isset && array_key_exists { $data = $sort_data[$data ]; if else } else if(isset && else } if(isset || isset { if($data < 0) if($data < 1) $sql.= " LIMIT " . $data . "," . $data ; } $query = $this->db->query ;// var_dump ; $product_data = array ; if { $this->load->model ; foreach } return $product_data; } public function getTaxRates }controller dosyası :class ControllerExtensionModuleAdvajaxfilter extends Controller { private $k = 1; public function index { $this->load->language ; $this->document->addStyle ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data =$this->currency->getSymbolRight ; $data =$this->currency->getSymbolLeft ; // $data = $this->currency->getSymbolRight ; // $data = $this->currency->getSymbolLeft ; $this->load->model ; $advsettings = $this->model_setting_setting->getSetting ; if (isset else $adv_ajaxfilter_setting = $this->config->get ; $cat_id = false; $data = ""; if(isset $man_id = false; if(isset else $this->load->model ; $product_total = $this->model_catalog_product->getTotalProducts ; if($product_total < 2) $data = $cat_id; $_data = array ; $this->load->model ; $this->load->model ; $data = false; if(isset else { if { $data = $this->model_module_adv_ajaxfilter->getManufacturers ; $data = $adv_ajaxfilter_setting ; $data = isset ? 1 : 0; foreach } } $data = $this->model_module_adv_ajaxfilter->getOptions ; foreach { if(! isset $display_option = $adv_ajaxfilter_setting['display_option_' . $option ]; if { $data = $display_option; $data = isset ? 1 : 0; foreach } else } $data = false; if $data = $this->model_module_adv_ajaxfilter->getAttributes ; foreach { foreach { if(! isset $display_attribute = $adv_ajaxfilter_setting ; if { if $data = $display_attribute; $data = isset ? 1 : 0; } else { unset ; if } } } $data = array ; $this->load->model ; $fltr_grps = $this->model_catalog_category->getCategoryFilters ; $data = $adv_ajaxfilter_setting ; $data = isset ? 1 : 0; if { foreach { $filter_data = array ; foreach $data = array ; } } $data = $adv_ajaxfilter_setting ; $data = $adv_ajaxfilter_setting ; $data = isset ? 1 : 0; $data = isset ? 1 : 0; if $adv_ajaxfilter_setting =""; $data = $adv_ajaxfilter_setting ; $data = html_entity_decode($adv_ajaxfilter_setting , ENT_QUOTES, 'UTF-8'); if(isset else if(isset else $data = ''; if(isset $data = $this->url->link ; return $this->load->view ; } public function getProducts { $this->load->language ; $adv_ajaxfilter_setting = $this->config->get ; if $adv_ajaxfilter_setting > 0) if (isset else if (isset else if (isset else if (isset if(isset else if(isset($par )) else if(isset else if(isset($par )) else $this->load->model ; $this->load->model ; $this->load->model ; $man = false; if(isset { $man = $this->trim_array_values ; if(! count } $man_id = false; if(isset $option_value = false; if(isset { $option_value = $this->trim_array_values ; if(! count } $attr_value = array ; if(isset { $attr_value = $this->trim_array_values ; if(! count } $instock = false; if(isset $cats = false; if(isset { $cats = $this->trim_array_values ; if(! count } $cat_id = 0; if(isset if $attr_slider = isset ? $this->request->post : false; $filter = false; if(isset { $filter = $this->trim_array_values ; if(! count } $data = array( 'instock' => $instock, 'option_value' => $option_value, 'manufacturer' => $man, 'attribute_value' => $attr_value, 'categories' => $cats, 'attr_slider' => $attr_slider, 'filter' => $filter, 'min_price' => $this->request->post / $this->k, 'max_price' => $this->request->post / $this->k, 'start' => ($page - 1) $limit, 'limit' => $limit, 'sort' => $sort, 'order' => $order ); if(isset || else $totals_options = $this->model_module_adv_ajaxfilter->getTotalOptions ; $totals_atrs = $this->model_module_adv_ajaxfilter->getTotalAttributes ; foreach { foreach { if } $temp_data = $data; unset ; foreach($this->model_module_adv_ajaxfilter->getTotalAttributes as $attr){ if } } $totals_cats = $this->model_module_adv_ajaxfilter->getTotalCategories ; $results = $this->model_module_adv_ajaxfilter->getProducts ; $min_price = false; $max_price = false; if(isset && $this->request->post ) $this->request->get = isset ? $this->request->post : ''; $product_total = $this->model_module_adv_ajaxfilter->getTotalProducts ; $pagination = new Pagination ; $pagination->total = $product_total; $pagination->page = $page; $pagination->limit = $limit; $pagination->url = $this->url->link ; $pagination_result = sprintf($this->language->get , ? (($page - 1) $limit) + 1 : 0, ((($page - 1) $limit) > ? $product_total : ((($page - 1) $limit) + $limit), $product_total, ceil ;//$data =$this->currency->format(100, $this->session->data , ; $min_price = $this->currency->convert($min_price $this->k, $this->session->data ,$this->config->get , $this->currency->getCode ; $max_price = $this->currency->convert($max_price $this->k, $this->session->data ,$this->config->get , $this->currency->getCode ; $result_html = $this->getProductsTmpl ; $json = json_encode(array( 'result_html' => $result_html, 'min_price' => $min_price, 'max_price' => $max_price, 'pagination' => $pagination->render , 'pagination_result' => $pagination_result, 'totals_data' => array ; $this->response->setOutput ; } private function getProductsTmpl { $this->load->language ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = sprintf($this->language->get , (isset ? count : 0)); $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = $this->language->get ; $data = array ; foreach { if else if (($this->config->get && $this->customer->isLogged || !$this->config->get else if $result ) else if ($this->config->get else if ($this->config->get else $data = array( 'product_id' => $result , 'thumb' => $image, 'name' => $result , 'description' => utf8_substr(strip_tags(html_entity_decode($result , ENT_QUOTES, 'UTF-8')), 0, 100) . '..', 'price' => $price, 'special' => $special, 'tax' => $tax, 'rating' => $result , 'reviews' => sprintf($this->language->get , $result ), 'href' => $this->url->link , 'saving' => $result == 0? 100 : round /$result ) 100, 0) ); } return $this->load->view ; } private function trim_array_values { foreach { if(is_array { $array = $this->trim_array_values ; if(! count } elseif(is_string { $value = trim ; if } } return $array; }}?>

Merhaba arkadaşlar beni bilen bilir bundan dolayı direk konuya bodoslama dalıyorum. Bir tane modul var ajax advanced filter opencart 2.1. ve altı sürümler için ben bunu opencart 2.3. x sürüme yükselttim. Ancak bir yerde tıkandım bu iki sürüm arasında path - yol farklılıkları olduğundan post edilen veriyi yeni sisteme göre yapmam gerekiyor. Ama bütün js ve php dosyalarını değiştirmeme rağmen banamısın demedi google chrome da consol aracılığıyla incelediğimde hatayı gösteriyor ama dosyasını bi türlü bulamadım. L, nk : http://www.mediafire.com/file/tewk9f0m7g1ony1/AjaxFilter. rar

Anladığım kadarı ile modül çalışıyor sanırım. Ama tarayıcı console da hata uyarısı veriyor?

yilmaz70 üstat senin facebook varmı oradan paslaşalım. Face kullanmıyorum maalesef. Sana pm den iletişim yazayım istersen.

modul çalışmıyor filtreleme yapmıyor filtreleme olayındaki post işleminde 404 hatası verdiğinden veriler çekilememektedir üstad yilmaz70 O zaman bir sitede modülü kurup deneme yapalım bakalım belki buluruz hatayı. Gerçi sen de bulursun ama bazen olabiliyor böyle kilitlenme durumları. Bir kurayım bakayım yazarım sana.

yilmaz70üstat senin facebook varmı oradan paslaşalım.

yilmaz70tamam

modul çalışmıyor filtreleme yapmıyor filtreleme olayındaki post işleminde 404 hatası verdiğinden veriler çekilememektedir üstadyilmaz70

tamam beklemekteyim.

yilmaz70 tamam pm yolladım. Kolay gelsin.

Kiroglumarket Notice: Undefined index: HTTP_REFERER in /catalog/controller/extension/module/adv_ajaxfilter. php on line 255Notice: Undefined index: min_price in /catalog/controller/extension/module/adv_ajaxfilter. php on line 354Notice: Undefined index: max_price in /catalog/controller/extension/module/adv_ajaxfilter. php on line 355 ne yaptıysam olmadı maalesef. Min price ile max price oluşturamıyor.