ProductsMostSales(); $EnCokSatanlar = $this->Models->query("select product,statu, count(*) from shopping where product<>'' and statu=1 group by product order by count(*) desc limit 4"); 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 15"); }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 15"); /* İ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 15"); /* 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 15"); /* En Çok Ziyaret Edilen Ürünler Son */ if(count($IndirimliUrunler)>0){ foreach($IndirimliUrunler 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']; } } ?>