query("select product,statu, count(*) from shopping where product<>'' and statu=1 group by product order by count(*) desc limit 300"); } /* En çok satanlar */ $EnCokSatanlar = ProductsMostSales__($Models); if(count($EnCokSatanlar)>0){ $enUarr = null; foreach($EnCokSatanlar as $ecVal){ $enUarr .= $ecVal['product'].','; } $enUarr = rtrim($enUarr , ','); $EnCokSatanlarItems = $Models->query("select * from products where id in($enUarr) ORDER BY FIELD(id, $enUarr) limit 15"); }else{ $EnCokSatanlarItems = null; } /* En çok satanlar son */ /* İndirimli Ürünler */ $IndirimliUrunler = $Models->query("select * from products where top=0 and discount>0.00 and picture<>'' limit 15"); /* İndirimli ürünler son */ /* Yeni Ürünler */ $YeniUrunler = $Models->query("select * from products where top=0 and yeni_urun=1 and picture<>'' order by id desc limit 15"); /* Yeni ürünler son */ /* En Çok Ziyaret Edilen Ürünler */ $EnCokZiyaretEdilenUrunler = $Models->query("select product, count(*) from product_click group by product order by count(*) desc limit 300"); if(count($EnCokZiyaretEdilenUrunler)>0){ $enZuarr = null; foreach($EnCokZiyaretEdilenUrunler as $eczVal){ $enZuarr .= $eczVal['product'].','; } $enZuarr = rtrim($enZuarr , ','); $EnCokZiyaretItems = $Models->query("select * from products where id in($enZuarr) and top=0 and picture<>'' ORDER BY FIELD(id, $enZuarr) limit 15"); }else{ $EnCokZiyaretItems = null; } /* 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']; } } ?>