Models->query("select product,statu, count(*) from shopping where product<>'' and statu=1 group by product order by count(*) desc limit 15"); if(count($EnCokSatanlar)>0){ $enUarr = null; foreach($EnCokSatanlar as $ecVal){ $enUarr .= $ecVal['product'].','; } $enUarr = rtrim($enUarr , ','); $EnCokSatanlarItems = $this->Models->query("select * from products where id in($enUarr) ORDER BY FIELD(id, $enUarr) limit 10"); }else{ $EnCokSatanlarItems = null; } /* En çok satanlar son */ /* İndirimli Ürünler */ $IndirimliUrunler = $this->Models->query("select * from products where top=0 and discount>0.00 and picture<>'' limit 10"); /* İndirimli ürünler son */ /* Yeni Ürünler */ $YeniUrunler = $this->Models->query("select * from products where top=0 and yeni_urun=1 and picture<>'' order by id desc limit 10"); /* Yeni ürünler son */ /* En Çok Ziyaret Edilen Ürünler */ $EnCokZiyaretItems = $this->Models->query("select * from products where top=0 and picture<>'' order by rand() limit 10"); /* En Çok Ziyaret Edilen Ürünler Son */ if(count($EnCokSatanlarItems)>0){ foreach($EnCokSatanlarItems as $value){ $ProductPrice = $Price->ProductPrice($value['id'] , $value['unit_price'] , $value['discount'] , $value['campaigns'] , PriceTypeText($value['price_type_text'])); if(empty($value['minimum_adet'])){ $minimum_adet = 1; }else{ $minimum_adet = $value['minimum_adet']; } ?>
0){ foreach($Anasayfa as $ansVal){ $mPath = ansPath($ansVal['id'] , $languages); include $mPath['path']; } } ?>