📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv9.demodesign.com.tr
/
themes
/
default
📝
sub_category.php
← Geri Dön
<?php m_header(); $informations = $db->table('categories')->where('sef','=',m_u_g('sef'))->where('c_id','!=',0)->where('status','=',1)->get(); if($informations['total_count']=='0') { m_redirect(SITE_DOMAIN); } $info = $informations['data'][0]; $top_category = $db->table('categories')->where('id','=',$info['c_id'])->get_vars(); $cat_products = $db->table('products')->where_set('c_id','LIKE',"'%[".$info['id']."]%'")->where('status','=',1)->order('id','desc')->pagination(40)->get(); $min_prices = $db->table('products')->where_set('c_id','LIKE',"'%[".$info['id']."]%'")->where('status','=',1)->order('sale_price','asc')->limit(1)->get(); $min_price = number_format($min_prices['data'][0]['sale_price']); $max_prices = $db->table('products')->where_set('c_id','LIKE',"'%[".$info['id']."]%'")->where('status','=',1)->order('sale_price','desc')->limit(1)->get(); $max_price = number_format($max_prices['data'][0]['sale_price']); ?> <section class="cover pt-5 pb-5" style="background: url('<?php echo SITE_THEME_URL; ?>/assets/img/cover-login.png') center center no-repeat; background-size: cover;"> <div class="container-lg"> <h1><?php echo $info['title']; ?></h1> <nav aria-label="breadcrumb" class="mt-3"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="<?php echo m_permalink('home'); ?>" title="<?php echo LG_HOME; ?>"><?php echo LG_HOME; ?></a></li> <li class="breadcrumb-item active" aria-current="page"><?php echo $info['title']; ?></li> </ol> </nav> </div> </section> <section class="page category"> <div class="container-lg"> <div class="row"> <div class="col-lg-12 mb-0"> <div class="pt-4 pb-4"> <div class="d-flex align-items-center justify-content-between filterbottom pb-4 mb-4"> <div class="scrolllr"> </div> <div class="r"> <select name="" id="" class="form-select selectorder product_list_order"> <option value="0"><?php echo LG_LIST_ORDER_DEFAULT; ?></option> <option value="asc"><?php echo LG_LIST_ORDER_UP; ?></option> <option value="desc"><?php echo LG_LIST_ORDER_DOWN; ?></option> </select> </div> </div> <div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-lg-3 row-cols-xl-4 productlist product_list scroll_data" data-type="category" data-page="1" data-c_id="<?php echo $info['id']; ?>" data-total_page="<?php echo $cat_products['total_page']; ?>"> <?php foreach($cat_products['data'] as $product) { $product_image = m_image_url($product['image']); $product_title = $product['title']; $product_link = m_permalink('product',$product['sef'],$product['id']); $undiscounted_price = m_currency($product['undiscounted_price']); $product_sale_price = m_currency($product['sale_price']); $product_currency_type = currency_types($product['currency_type'],'value'); $undiscounted_html = ''; if($undiscounted_price>0) { $undiscounted_html = '<span class="old-price">'.$undiscounted_price.' '.$product_currency_type.'</span>'; } $cart_control = cart_control($product['id']); ?> <div class="col"> <div class="item"> <div class="img"> <?php if($product['cargo_price'] == "0.00"){ ?> <span class="d-flex bdgs"> <span class="bdg green">Ücretsiz Kargo!</span> </span> <?php } ?> <a href="<?php echo $product_link; ?>"> <img src="<?php echo $product_image; ?>" width="238" height="175" class="img-fluid" alt=""> </a> </div> <a href="<?php echo $product_link; ?>" class="title"><h3><?php echo $product_title; ?></h3></a> <div class="pb"> <?php echo $undiscounted_html ?> <div class="price"><?php echo $product_sale_price; ?> <?php echo $product_currency_type; ?></div> <?php echo $cart_control; ?> </div> </div> </div> <?php } ?> </div> <?php echo m_pagination($cat_products['total_page'],$cat_products['current_page'],m_permalink('category',$info['sef'])); ?> </div> </div> </div> </div> </section> <section class="whyus pt-5 pb-5"> <div class="container-lg"> <div class="title text-center">NEDEN <?php echo str_replace('https://','',SITE_DOMAIN); ?>?</div> <div class="row mt-5"> <?php $boxes_bottom = $db->table('boxes_bottom')->where('status','=',1)->order('b_rank','ASC')->get(); if($boxes_bottom['total_count'] != 0){ foreach($boxes_bottom['data'] as $boxes){ $title = $boxes['title']; $content = $boxes['content']; $color = $boxes['color']; $icon = $boxes['icon']; ?> <div class="col-xl-3 col-lg-3 col-md-6 col-sm-12 col-12"> <div class="item orange"> <div class="subtitle"><?= $title ?></div> <p><?= $content ?></p> </div> </div> <?php } } ?> </div> </div> </section> <?php m_footer(); ?>
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula