debreli
OpenCart-TR
aç catalog/controller/common/header.php bul
öncesine ekle
aynı dosyada bul
sonrasına ekle
aç catalog/language/turkish/common/header.php
bul
sonrasına ekle
aç template/common/header.tpl sayfanın sonuna ekle
aynı dosyada aşağıdaki kodu da görünmesini istediğiniz bir yere ekleyin.
Kod:
$this->id = 'header';
öncesine ekle
Kod:
if ($this->customer->isLogged()) {
$this->data['text_greeting'] = sprintf($this->language->get('text_logged'), $this->customer->getFirstName());
}
$this->data['heading_title'] = $this->language->get('heading_title');
$this->data['entry_email_address'] = $this->language->get('entry_email_address');
$this->data['entry_password'] = $this->language->get('entry_password');
$this->data['button_login'] = $this->language->get('button_login');
$this->data['button_logout'] = $this->language->get('button_logout');
$this->data['button_create'] = $this->language->get('button_create');
$this->data['action'] = (((HTTPS_SERVER) ? HTTPS_SERVER : HTTP_SERVER) . 'index.php?route=account/login');
aynı dosyada bul
Kod:
$this->data['entry_search'] = $this->language->get('entry_search');
sonrasına ekle
Kod:
$this->data['entry_email_address'] = $this->language->get('entry_email_address');
$this->data['entry_password'] = $this->language->get('entry_password');
aç catalog/language/turkish/common/header.php
bul
Kod:
$_['entry_search'] = 'Arama:';
sonrasına ekle
Kod:
$_['entry_email_address'] = 'E-Mail Adres:';
$_['entry_password'] = 'Parola:';
aç template/common/header.tpl sayfanın sonuna ekle
Kod:
<script type="text/javascript"><!--
$('#module_login input').keydown(function(e) {
if (e.keyCode == 13) {
$('#module_login').submit();
}
});
//--></script>
aynı dosyada aşağıdaki kodu da görünmesini istediğiniz bir yere ekleyin.
Kod:
<?php if ($_SERVER['REQUEST_URI'] == '/index.php?route=account/login') { ?>
<?php } elseif ($this->customer->isLogged()) { ?>
<?php } else { ?>
<div id="information" style="text-align: left;">
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="module_login">
<b><?php echo $entry_email_address; ?></b>
<span style="text-align: left;"><input type="text" name="email" style="width:85px;" /></span>
<b><?php echo $entry_password; ?></b>
<input type="password" name="password" style="width:85px;" /> <a onclick="$('#module_login').submit();" class="button"><span><?php echo $button_login; ?></span></a>
</form>
</div><?php } ?>
