Çıkış Butonu Yok Nasıl Yapabilirim?

Dagger

OpenCart-TR
Katılım
31 Ağu 2010
Mesajlar
87
Tepkime puanı
0
Puanları
0
Yaş
50
Konum
Istanbul
Arkadaşlar sitemde üye girişi yaptıktan sora malesef çıkış butonu yok bunu nasıl halledebilirim (account sayfasında) sayfanın altına
Kod:
<div style="margin-top: 12px; text-align: center;"><a href="<?php echo $logout; ?>" class="button"><span><?php echo $button_logout; ?></span></a></div>
ekledim ama beceremedim.Account sayfasına nasıl ekleyebilirim.Üye panelide siparişte çakışma yaptığı için kullanamıyorum
 

mirac

OpenCart-TR
Katılım
7 Şub 2010
Mesajlar
1,383
Tepkime puanı
0
Puanları
36
Yaş
42
Konum
Beykoz____
Web sitesi
www.notebook-cantasi.com
RE: Çıkış yapamıyorum

Header.tpl dosyasına alttaki kodlarla çıkış yaptırabilirsin..

Kod:
      <?php if (!$logged) { ?>
      <a href="<?php echo str_replace('&', '&', $login); ?>" id="tab_login"><?php echo $text_login; ?></a>
      <?php } else { ?>
      <a href="<?php echo str_replace('&', '&', $logout); ?>" id="tab_logout"><?php echo $text_logout; ?></a>
      <?php } ?>

account sayfasınada data kodlarının altına alttaki kodları ekle

Kod:
        $this->data['logged'] = $this->customer->isLogged();
        $this->data['login'] = HTTPS_SERVER . 'index.php?route=account/login';
        $this->data['logout'] = HTTP_SERVER . 'index.php?route=account/logout';
 

Dagger

OpenCart-TR
Katılım
31 Ağu 2010
Mesajlar
87
Tepkime puanı
0
Puanları
0
Yaş
50
Konum
Istanbul
Mirac ilgin için sağol ama birtürlü beceremedim.

/catalog/controller/account/account.php altına verdiğin kodları ekledim bir gelişme olmadı

Kod:
$this->data['information'] = HTTPS_SERVER . 'index.php?route=account/edit';
    	$this->data['password'] = HTTPS_SERVER . 'index.php?route=account/password';
		$this->data['address'] = HTTPS_SERVER . 'index.php?route=account/address';
    	$this->data['history'] = HTTPS_SERVER . 'index.php?route=account/history';
    	$this->data['download'] = HTTPS_SERVER . 'index.php?route=account/download';
		$this->data['newsletter'] = HTTPS_SERVER . 'index.php?route=account/newsletter';
        $this->data['logged'] = $this->customer->isLogged();
        $this->data['login'] = HTTPS_SERVER . 'index.php?route=account/login';
        $this->data['logout'] = HTTP_SERVER . 'index.php?route=account/logout';

Benim istediğim yanlızca bu aşağıdaki resimde çıkış yazdığım yere bir buton veya yazı koymak

cikis.png
 

admin

Administrator
Yönetici
Katılım
13 Ağu 2009
Mesajlar
3,200
Tepkime puanı
1
Puanları
38
Yaş
38
Konum
Bursa
Web sitesi
www.opencart-tr.com
mirac' Alıntı:
Header.tpl dosyasına alttaki kodlarla çıkış yaptırabilirsin..

Kod:
      <?php if (!$logged) { ?>
      <a href="<?php echo str_replace('&', '&', $login); ?>" id="tab_login"><?php echo $text_login; ?></a>
      <?php } else { ?>
      <a href="<?php echo str_replace('&', '&', $logout); ?>" id="tab_logout"><?php echo $text_logout; ?></a>
      <?php } ?>

account sayfasınada data kodlarının altına alttaki kodları ekle

Kod:
        $this->data['logged'] = $this->customer->isLogged();
        $this->data['login'] = HTTPS_SERVER . 'index.php?route=account/login';
        $this->data['logout'] = HTTP_SERVER . 'index.php?route=account/logout';

1. Kodu account.tpl dosyasına temanız da yoksa default temaya ekleyin
2. kodu account.php dosyasına ekleyiniz.

Birde header.php dosyasında text_login ile text_logout kodlarını bulun yine account.php dosyasına ekleyiniz.
 

Dagger

OpenCart-TR
Katılım
31 Ağu 2010
Mesajlar
87
Tepkime puanı
0
Puanları
0
Yaş
50
Konum
Istanbul
Aşağıdaki hatayı veriyor malesef... Fakat bu koda basınca çıkış yapıyor :)


Kod:
•Notice: Undefined variable: text_logout in /var/www/vhosts/siteismim.com/httpdocs/catalog/view/theme/smrel/template/account/account.tpl on line 33


Sorun Çözüldü teşekkürler
 

stelll

OpenCart-TR
Katılım
10 Nis 2010
Mesajlar
3
Tepkime puanı
0
Puanları
0
Aynı Sorun bendede var nasıl çözüldü anlatırmısın neden kaynaklanıyor.
 
Üst