Sözleşmeleri thickbox olarak görüntüleme..

SAKINCALI

OpenCart-TR
Katılım
14 Nis 2010
Mesajlar
22
Tepkime puanı
0
Puanları
0
gizlilik ilkeleri ve alışveriş sırasındaki satış sözleşmesini açılır pencere ile entegre etmek için mevcut kodlar varmıdır?
 

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
alışveriş sözleşmesi için

catalog/controller/information/information.php aç..

Bul.. (Sayfanın en sonunda)
Kod:
}
?>

Değiştir..
Kod:
public function loadInfo() {
          $this->load->model('catalog/information');
          if (isset($this->request->get['information_id'])) {
             $information_id = $this->request->get['information_id'];
          } else {
             $information_id = ($this->config->get('config_checkout_id')) ? $this->config->get('config_checkout_id') : $this->config->get('config_checkout');
          }      
          $information_info = $this->model_catalog_information->getInformation($information_id);

          $output = '
          <div id="content" style="margin: 0pt; padding: 0pt;">
            <div class="top">
              <div class="left"></div>
              <div class="right"></div>
              <div class="center">
                <h1>'.$information_info['title'].'</h1>
              </div>
            </div>
            <div class="middle">
              <p>'.html_entity_decode($information_info['description']).'</p>
            </div>
            <div class="bottom">
              <div class="left"></div>
              <div class="right"></div>
              <div class="center"></div>
            </div>
          </div>
          ';

          $this->response->setOutput($output, $this->config->get('config_compression'));
       }
}
?>

catalog/language/english/checkout/payment.php aç..

Bul..
Kod:
$_['text_agree']           = '<a onclick="window.open(\'%s\');"><b>%s</b></a>\'ni okudum ve kabul ediyorum';

Değiştir..
Kod:
$_['text_agree']           = '<a class="thickbox" href="index.php?route=information/information/loadInfo&height=400&width=600" alt="%s"><b>%s</b></a>\'ni okudum ve kabul ediyorum';

Üyelik Sözleşmesi için..

catalog\language\turkish\account\create.php aç..

Bul..
Kod:
$_['text_agree']           = '<a onclick="window.open(\'%s\');"><b>%s</b></a>\'ni okudum ve kabul ediyorum.';

Değiştir..
Kod:
$_['text_agree']           = '<a class="thickbox" href="%s?keepThis=true&TB_iframe=true&height=400&width=600"><b>%s</b></a>\'ni okudum ve kabul ediyorum';

catalog\controller\account\create.php aç..

Bul..
Kod:
				$this->data['text_agree'] = sprintf($this->language->get('text_agree'), $this->url->http('information/information&information_id=' . $this->config->get('config_account')), $information_info['title']);

Değiştir..
Kod:
				    $this->data['text_agree'] = sprintf($this->language->get('text_agree'), 'index.php?route=information/information/callback&information_id='. $this->config->get('config_account'), $information_info['title']);

Bul.. (Sayfanın en sonunda)
Kod:
}
?>

Kod:
    public function callback() {
          $this->load->language('information/information');
          
          $this->load->model('catalog/information');
          
          $this->document->breadcrumbs = array();
          
             $this->document->breadcrumbs[] = array(
               'href'      => $this->url->http('common/home'),
               'text'      => $this->language->get('text_home'),
               'separator' => FALSE
             );
          
          $information_info = $this->model_catalog_information->getInformation(@$this->request->get['information_id']);
          
          if ($information_info) {
               $this->document->title = $information_info['title'];

                $this->document->breadcrumbs[] = array(
                  'href'      => $this->url->http('information/information&information_id=' . $this->request->get['information_id']),
                  'text'      => $information_info['title'],
                  'separator' => $this->language->get('text_separator')
                );      
          
          $this->data['heading_title'] = $information_info['title'];
          
          $this->data['description'] = html_entity_decode($information_info['description']);
          
          } else {
                $this->document->breadcrumbs[] = array(
                  'href'      => $this->url->http('information/information&information_id=' . $this->request->get['information_id']),
                  'text'      => $this->language->get('text_error'),
                  'separator' => $this->language->get('text_separator')
                );
          
                $this->data['heading_title'] = $this->language->get('text_error');

                $this->data['description'] = $this->language->get('text_error');
          
          }

          $ouput = '<table border="0" cellpadding="0" cellspacing="0" class="dvi2" style="width: 100%;">
      <tr>
        <td valign="middle" align="left" height="30"><b>'.$this->data['heading_title'].'</b></td>
      </tr>
      <tr>
        <td align="left" valign="top">'.$this->data['description'].'</td>
      </tr>
    </table>';
          
          $this->response->setOutput($ouput);
       }    
    }
    ?>


1.4.0 Sürümünde test edilmiştir..
 

SAKINCALI

OpenCart-TR
Katılım
14 Nis 2010
Mesajlar
22
Tepkime puanı
0
Puanları
0
ben mi beceremedim 1.4.7 bir türlü olmadı uyumsuzmudur acaba? 1.4.0 a uyumlu olduğuna göre 4.7 ye uyumlu olması gerekir diye düşünüyorum
 

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
İyide 1.4.7 de zaten bahsettiğiniz sözleşmeler zaten thickbox ile açılıyor.
 

SAKINCALI

OpenCart-TR
Katılım
14 Nis 2010
Mesajlar
22
Tepkime puanı
0
Puanları
0
eka7a' Alıntı:
İyide 1.4.7 de zaten bahsettiğiniz sözleşmeler zaten thickbox ile açılıyor.

bendemi bi bozukluk var anlamadım eka7a buradaki tam sürümü indirdim kurdum yeni üye kayıt sırasında kullanım sözleşmesi tamam tickbox çalışıyor misafir müşteri olarak alışverişte satış sözleşmesi tickbox olarak çalışmıyor yeni pencere açıyor

daha sonra editleyelim diyoruz fancybox yapalım resimlere efekt olsun diye işte yukarıdaki belirtilen kodu değiştirdiğimizde ne kullanım sözleşmesi nede satış sözleşmesi ikisi de yeni pencerede açılıyor.

satış sözleşmesi için hatayı düzeltemin yöntemi

catalog/language/english/checkout/payment.php değil
catalog/language/xxx/checkout/guest_step_2.php

$_['text_agree'] = '<a onclick="window.open(\'%s\');"><b>%s</b></a>\'ni okudum ve kabul ediyorum';

kodu


$_['text_agree'] = '<a class="thickbox" href="index.php?route=information/information/loadInfo&height=400&width=600" alt="%s"><b>%s</b></a>\'ni okudum ve kabul ediyorum';


ile değiştiriyoruz tickbox özelliği eklenmiş oluyor
 

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
Fancybox kullanıyorsan thickbox iptal etmiş oluyorsun. Bunun çalışması için

Önce dil dosyalarında gerekli yerleri bununla değiştir.
PHP:
$_['text_agree']            = '<a class="thickbox2" href="index.php?route=information/information/loadInfo&create=1" alt="%s"><b>%s</b></a>\'ni okudum ve kabul ediyorum.';

Daha sonra thickbox-compressed.js dosyasında thickbox diye arat bunu thickbox2 olarak değiştir. onkeydown ile TB_HEIGHT arasında olması lazım.

thickbox klasörünün adını thickbox2 olarak değiştir.

Fancybox entegre ederken header.tpl dosyasında sildiğin kodları <head> </head> arasına ekle
PHP:
<script type="text/javascript" src="catalog/view/javascript/jquery/thickbox2/thickbox-compressed.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/thickbox2/thickbox.css" />
 

SAKINCALI

OpenCart-TR
Katılım
14 Nis 2010
Mesajlar
22
Tepkime puanı
0
Puanları
0
çok mokbule geçti eywalla kardes çok saol şimdi oldu ikisini bir arada kullanabiliyorum problem bende değilmiş :) aslında bi nevide bende sayılır iki fonsiyonu birleştirmeye çalışıyoruz yolları ayarlamıyoruz çok saol
 

siirliyorum

OpenCart-TR
Katılım
20 Nis 2011
Mesajlar
6
Tepkime puanı
0
Puanları
0
Yaş
63
Konum
Gaziantep
Web sitesi
www.altinmaske.com
eka7a' Alıntı:
Fancybox kullanıyorsan thickbox iptal etmiş oluyorsun. Bunun çalışması için

Önce dil dosyalarında gerekli yerleri bununla değiştir.
PHP:
$_['text_agree']            = '<a class="thickbox2" href="index.php?route=information/information/loadInfo&create=1" alt="%s"><b>%s</b></a>\'ni okudum ve kabul ediyorum.';

Daha sonra thickbox-compressed.js dosyasında thickbox diye arat bunu thickbox2 olarak değiştir. onkeydown ile TB_HEIGHT arasında olması lazım.

thickbox klasörünün adını thickbox2 olarak değiştir.

Fancybox entegre ederken header.tpl dosyasında sildiğin kodları <head> </head> arasına ekle
PHP:
<script type="text/javascript" src="catalog/view/javascript/jquery/thickbox2/thickbox-compressed.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/thickbox2/thickbox.css" />

BU DİL DOSYASI DERKEN DOSYANIN TAM EDRİSİNİ YAZABİLİRMİSİNİZ HOCAM LÜTFEN

dil dosyalarında thickbox2 yaptım klasör adına da 2 ekledim hepsini yaptım ama yine de ürün satın alırman sözleşme kuralları düz açılıyor. Geri kaldırmak zorunda kaldım.
Daha anlıyacağımız bir dille tekrar aktarabilirmisiniz.
 
Üst