Sepet Modülünde Giriş Formu Göstermek

debreli

OpenCart-TR
Katılım
31 Ağu 2010
Mesajlar
196
Tepkime puanı
0
Puanları
0
Web sitesi
vakifshop.com
kayit.jpg

catalog/controller/module/cart.php aç
bul
Kod:
$this->data['checkout'] = HTTPS_SERVER . 'index.php?route=checkout/shipping';

altına ekle
Kod:
$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');
 		$this->id       = 'login';

catalog/language/turkish/module/cart.php aç

bul
Kod:
$_['heading_title'] = 'Alışveriş Sepeti';

altına ekle

Kod:
//Entry
$_['entry_email_address']		= 'E-Posta:';
$_['entry_password']			= 'Parola:';

// Buttons
$_['button_logout']				= 'Çıkış';
$_['button_create']			= 'Kayıt Ol';

catalog/view/theme/default/template/module/cart.tpl aç

bul
Kod:
<div class="middle">

altına ekle
Kod:
<?php if (!$this->customer->isLogged()) { ?>
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="module_login"> <b><?php echo $entry_email_address; ?></b><br />
    <span style="text-align: left;"><input type="text" name="email" /></span>
    <br />
    <b><?php echo $entry_password; ?></b><br />
    <input type="password" name="password" />
        <br />
    <div style="float:left; text-align: right;"><a href="<?php echo (((HTTPS_SERVER) ? HTTPS_SERVER : HTTP_SERVER) . 'index.php?route=account/create');?>" class="button"><span><?php echo $button_create; ?></span></a></div>
    <div style="float:left; text-align: right;"><a onclick="$('#module_login').submit();" class="button"><span><?php echo $button_login; ?></span></a></div>
    <br style="clear:both;"/>
    </form>
  <?php } ?>
açtığınız cart.tpl dosyasının en altına altakini ekleyin
Kod:
 <script type="text/javascript"><!--
  $('#module_login input').keydown(function(e) {
	  if (e.keyCode == 13) {
		  $('#module_login').submit();
	  }
  });
  //--></script>

catalog/controller/checkout/shipping.php dosyasını açın
bunu bulun
Kod:
$this->data['change_address'] = HTTPS_SERVER . 'index.php?route=checkout/address/shipping';

bununla değiştirin
Kod:
$this->data['change_address'] = HTTPS_SERVER . 'index.php?route=account/address';
 

celeros

OpenCart-TR
Katılım
28 Eki 2010
Mesajlar
3
Tepkime puanı
0
Puanları
0
Web sitesi
saglikli1yasam.com
catalog/controller/module/cart.php de $this->data['checkout'] = HTTPS_SERVER . 'index.php?route=checkout/shipping'; die bir satır bulamadım
 

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
Kullandığınız sürüm 1.4.7 ise o kod yoktur.
$this->data['products'] = array(); kodunu bulun ve üzerine ekleyip deneyiniz
 
Üst