EnverYigit
OpenCart-TR
- Katılım
- 15 Ara 2011
- Mesajlar
- 199
- Tepkime puanı
- 0
- Puanları
- 0
- Yaş
- 33
Yönetim Paneline Resimli Menü Ekleme
* Düzenlemeden önce lütfen yedek alınız sorumluluk kabul etmiyorum.
* Kullandığım ve test ettiğim opencart sürümü 1.4.9.6 diğer sürümlerde denemedim.
* Diğer sürümlerde işe yarayacağını düşünüyorum. Bu dosyaları oluştururken header.php dosyasından yararlandım. Çalışmayan sürümlerden aynı mantıkla yapabilirsiniz sanırım.
* Stok durumu eklentisini forumdan bulabilirsiniz. Yapmadan önce bence stok durumu modülünü kurunuz.
* Menü ikonları internetten derlenmiştir.
* Çalışıp çalışmadığını lütfen yorum yaparak bildiriniz.
admin/view/common/home.tpl
BUL
PHP:
<div style="display: inline-block; width: 100%; margin-bottom: 15px; clear: both;">
ÜSTÜNE EKLE
PHP:
<div>
<div style="display: inline-block; width: 100%; margin-bottom: 15px; clear: both;">
<div style="float: center; width: 100%;">
<div style="background: #3d3d3d; color: #FFF; border-bottom: 1px solid #8EAEC3; padding: 5px; font-size: 14px; font-weight: bold;"><center>Navigasyon Menü</center></div>
<div style="background: #FCFCFC; border: 1px solid #8EAEC3; padding: 10px; height: 100px;">
<table height: 180px; >
<ul id="icons">
<li>
<a href="<?php echo $category; ?>">
<img src="view/image/icons/kategoriler.png">
<h6>Kategoriler</h6>
</a>
</li>
<li>
<a href="<?php echo $success; ?>">
<img src="view/image/icons/kategoriekle.png">
<h6>Kategori Ekle</h6>
</a>
</li>
<li>
<a href="<?php echo $product; ?>">
<img src="view/image/icons/urunler.png">
<h6>Ürünler</h6>
</a>
</li>
<li>
<a href="<?php echo $success2; ?>">
<img src="view/image/icons/urunekle.png">
<h6>Ürün Ekle</h6>
</a>
</li>
<li>
<a href="<?php echo $review; ?>">
<img src="view/image/icons/yorumlar.png">
<h6>Yorumlar</h6>
</a>
</li>
<li>
<a href="<?php echo $information; ?>">
<img src="view/image/icons/bilgisayfa.png">
<h6>Bilgi Sayfaları</h6>
</a>
</li>
<li>
<a href="<?php echo $order; ?>">
<img src="view/image/icons/rapor.png">
<h6>Siparişler</h6>
</a>
</li>
<li>
<a href="<?php echo $customer; ?>">
<img src="view/image/icons/kullanicigrup.png">
<h6>Müşteriler</h6>
</a>
</li>
<li>
<a href="<?php echo $contact; ?>">
<img src="view/image/icons/mail2.png">
<h6>Toplu E-Posta</h6>
</a>
</li>
<li>
<a href="<?php echo $backup; ?>">
<img src="view/image/icons/yedekle.png">
<h6>Yedekle</h6>
</a>
</li>
<li>
<a href="<?php echo $report_stock; ?>">
<img src="view/image/icons/stok.png">
<h6>Stok Durumu</h6>
</a>
</li>
</ul>
</table>
</div>
</div>
<br>
___________________________________________________________
admin/view/stylesheet/stylesheet.css
EN ALTA EKLE
PHP:
/* NAVIGASYON MENU */
#icons {
float: center;
list-style: none;
margin:0;
padding:0;
}
#icons a {
text-decoration: none;
}
#icons li {
float: left;
width: 100px;
height: 100px;
border:0px solid #ccc;
margin: 0 7px 7px 0;
}
#icons li:hover {
border:1px solid #aaa;
background: #ddd;
}
#icons li img {
padding: 8px 18px 2px 18px;
text-align: center;
border:0px;
}
#icons li h6 {
color: #333;
font-size:12px;
text-align: center;
margin:0;
padding:0;
}
/* NAVIGASYON MENU */
___________________________________________________________
admin/controller/common/home.php
BUL
PHP:
$this->load->language('common/home');
ALTINA EKLE
PHP:
$this->load->language('common/header');
______________
BUL
PHP:
$this->data['text_no_results'] = $this->language->get('text_no_results');
ALTINA EKLE
PHP:
$this->data['text_backup'] = $this->language->get('text_backup');
$this->data['text_catalog'] = $this->language->get('text_catalog');
$this->data['text_category'] = $this->language->get('text_category');
$this->data['text_success'] = $this->language->get('text_success');
$this->data['text_success2'] = $this->language->get('text_success2');
$this->data['text_confirm'] = $this->language->get('text_confirm');
$this->data['text_country'] = $this->language->get('text_country');
$this->data['text_coupon'] = $this->language->get('text_coupon');
$this->data['text_currency'] = $this->language->get('text_currency');
$this->data['text_customer'] = $this->language->get('text_customer');
$this->data['text_customer_group'] = $this->language->get('text_customer_group');
$this->data['text_sale'] = $this->language->get('text_sale');
$this->data['text_download'] = $this->language->get('text_download');
$this->data['text_error_log'] = $this->language->get('text_error_log');
$this->data['text_extension'] = $this->language->get('text_extension');
$this->data['text_feed'] = $this->language->get('text_feed');
$this->data['text_front'] = $this->language->get('text_front');
$this->data['text_geo_zone'] = $this->language->get('text_geo_zone');
$this->data['text_dashboard'] = $this->language->get('text_dashboard');
$this->data['text_help'] = $this->language->get('text_help');
$this->data['text_information'] = $this->language->get('text_information');
$this->data['text_language'] = $this->language->get('text_language');
$this->data['text_localisation'] = $this->language->get('text_localisation');
$this->data['text_logout'] = $this->language->get('text_logout');
$this->data['text_contact'] = $this->language->get('text_contact');
$this->data['text_manufacturer'] = $this->language->get('text_manufacturer');
$this->data['text_module'] = $this->language->get('text_module');
$this->data['text_order'] = $this->language->get('text_order');
$this->data['text_order_status'] = $this->language->get('text_order_status');
$this->data['text_payment'] = $this->language->get('text_payment');
$this->data['text_product'] = $this->language->get('text_product');
$this->data['text_reports'] = $this->language->get('text_reports');
$this->data['text_report_purchased'] = $this->language->get('text_report_purchased');
$this->data['text_report_sale'] = $this->language->get('text_report_sale');
$this->data['text_report_viewed'] = $this->language->get('text_report_viewed');
$this->data['text_report_activity'] = $this->language->get('text_report_activity');
$this->data['text_review'] = $this->language->get('text_review');
$this->data['text_select_all'] = $this->language->get('text_select_all');
$this->data['text_support'] = $this->language->get('text_support');
$this->data['text_shipping'] = $this->language->get('text_shipping');
$this->data['text_setting'] = $this->language->get('text_setting');
$this->data['text_stock_status'] = $this->language->get('text_stock_status');
$this->data['text_report_stock'] = $this->language->get('text_report_stock');
$this->data['text_system'] = $this->language->get('text_system');
$this->data['text_tax_class'] = $this->language->get('text_tax_class');
$this->data['text_total'] = $this->language->get('text_total');
$this->data['text_unselect_all'] = $this->language->get('text_unselect_all');
$this->data['text_user'] = $this->language->get('text_user');
$this->data['text_user_group'] = $this->language->get('text_user_group');
$this->data['text_users'] = $this->language->get('text_users');
$this->data['text_documentation'] = $this->language->get('text_documentation');
$this->data['text_weight_class'] = $this->language->get('text_weight_class');
$this->data['text_length_class'] = $this->language->get('text_length_class');
$this->data['text_opencart'] = $this->language->get('text_opencart');
$this->data['text_zone'] = $this->language->get('text_zone');
______________
BUL
PHP:
$this->data['entry_range'] = $this->language->get('entry_range');
ALTINA EKLE
PHP:
if (!$this->user->isLogged() || !isset($this->request->get['token']) || !isset($this->session->data['token']) || ($this->request->get['token'] != $this->session->data['token'])) {
$this->data['logged'] = '';
$this->data['home'] = HTTPS_SERVER . 'index.php?route=common/login';
} else {
$this->data['logged'] = sprintf($this->language->get('text_logged'), $this->user->getUserName());
$this->data['home'] = HTTPS_SERVER . 'index.php?route=common/home&token=' . $this->session->data['token'];
$this->data['backup'] = HTTPS_SERVER . 'index.php?route=tool/backup&token=' . $this->session->data['token'];
$this->data['category'] = HTTPS_SERVER . 'index.php?route=catalog/category&token=' . $this->session->data['token'];
$this->data['success'] = HTTPS_SERVER . 'index.php?route=catalog/category/insert&token=' . $this->session->data['token'];
$this->data['success2'] = HTTPS_SERVER . 'index.php?route=catalog/product/insert&token=' . $this->session->data['token'];
$this->data['country'] = HTTPS_SERVER . 'index.php?route=localisation/country&token=' . $this->session->data['token'];
$this->data['currency'] = HTTPS_SERVER . 'index.php?route=localisation/currency&token=' . $this->session->data['token'];
$this->data['coupon'] = HTTPS_SERVER . 'index.php?route=sale/coupon&token=' . $this->session->data['token'];
$this->data['customer'] = HTTPS_SERVER . 'index.php?route=sale/customer&token=' . $this->session->data['token'];
$this->data['customer_group'] = HTTPS_SERVER . 'index.php?route=sale/customer_group&token=' . $this->session->data['token'];
$this->data['download'] = HTTPS_SERVER . 'index.php?route=catalog/download&token=' . $this->session->data['token'];
$this->data['error_log'] = HTTPS_SERVER . 'index.php?route=tool/error_log&token=' . $this->session->data['token'];
$this->data['feed'] = HTTPS_SERVER . 'index.php?route=extension/feed&token=' . $this->session->data['token'];
$this->data['stores'] = array();
$this->load->model('setting/store');
$results = $this->model_setting_store->getStores();
foreach ($results as $result) {
$this->data['stores'][] = array(
'name' => $result['name'],
'href' => $result['url']
);
}
$this->data['geo_zone'] = HTTPS_SERVER . 'index.php?route=localisation/geo_zone&token=' . $this->session->data['token'];
$this->data['information'] = HTTPS_SERVER . 'index.php?route=catalog/information&token=' . $this->session->data['token'];
$this->data['language'] = HTTPS_SERVER . 'index.php?route=localisation/language&token=' . $this->session->data['token'];
$this->data['logout'] = HTTPS_SERVER . 'index.php?route=common/logout&token=' . $this->session->data['token'];
$this->data['contact'] = HTTPS_SERVER . 'index.php?route=sale/contact&token=' . $this->session->data['token'];
$this->data['manufacturer'] = HTTPS_SERVER . 'index.php?route=catalog/manufacturer&token=' . $this->session->data['token'];
$this->data['module'] = HTTPS_SERVER . 'index.php?route=extension/module&token=' . $this->session->data['token'];
$this->data['order'] = HTTPS_SERVER . 'index.php?route=sale/order&token=' . $this->session->data['token'];
$this->data['order_status'] = HTTPS_SERVER . 'index.php?route=localisation/order_status&token=' . $this->session->data['token'];
$this->data['payment'] = HTTPS_SERVER . 'index.php?route=extension/payment&token=' . $this->session->data['token'];
$this->data['product'] = HTTPS_SERVER . 'index.php?route=catalog/product&token=' . $this->session->data['token'];
$this->data['report_purchased'] = HTTPS_SERVER . 'index.php?route=report/purchased&token=' . $this->session->data['token'];
$this->data['report_sale'] = HTTPS_SERVER . 'index.php?route=report/sale&token=' . $this->session->data['token'];
$this->data['report_viewed'] = HTTPS_SERVER . 'index.php?route=report/viewed&token=' . $this->session->data['token'];
$this->data['report_activity'] = HTTPS_SERVER . 'index.php?route=report/activity&token=' . $this->session->data['token'];
$this->data['report_stock'] = HTTPS_SERVER . 'index.php?route=report/stock&token=' . $this->session->data['token'];
$this->data['review'] = HTTPS_SERVER . 'index.php?route=catalog/review&token=' . $this->session->data['token'];
$this->data['shipping'] = HTTPS_SERVER . 'index.php?route=extension/shipping&token=' . $this->session->data['token'];
$this->data['setting'] = HTTPS_SERVER . 'index.php?route=setting/setting&token=' . $this->session->data['token'];
$this->data['store'] = HTTP_CATALOG;
$this->data['stock_status'] = HTTPS_SERVER . 'index.php?route=localisation/stock_status&token=' . $this->session->data['token'];
$this->data['tax_class'] = HTTPS_SERVER . 'index.php?route=localisation/tax_class&token=' . $this->session->data['token'];
$this->data['total'] = HTTPS_SERVER . 'index.php?route=extension/total&token=' . $this->session->data['token'];
$this->data['user'] = HTTPS_SERVER . 'index.php?route=user/user&token=' . $this->session->data['token'];
$this->data['user_group'] = HTTPS_SERVER . 'index.php?route=user/user_permission&token=' . $this->session->data['token'];
$this->data['weight_class'] = HTTPS_SERVER . 'index.php?route=localisation/weight_class&token=' . $this->session->data['token'];
$this->data['length_class'] = HTTPS_SERVER . 'index.php?route=localisation/length_class&token=' . $this->session->data['token'];
$this->data['zone'] = HTTPS_SERVER . 'index.php?route=localisation/zone&token=' . $this->session->data['token'];
}
___________________________________________________________
Resimlerin olacağı klasör admin/view/image/icons/admin_icon.zip içerisindeki dosyaları(resimleri) sistemin anasayfasına gönderin. Klasör halinde atarsanız direk olacağı yere gider.
Bu Kadar
Menü ikonları> admin_icon.zip
Kodlarla uğraşmayıp direk denemek isteyenler için yukarıdaki değişikliklerin yapıldığı dosyalar vardır. Yüklemeden önce lütfen yedek alınız.> menu_komple_hazir.zip