Müşteri Destek Masası Yapıyoruz!

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

afroma

For a good time, one night only
Katılım
9 Ara 2009
Mesajlar
156
Tepkime puanı
0
Puanları
16
Yaş
41
Konum
Usa
Web sitesi
meettomy.site
Evet arkadaşlar birçok sistemde ve özellikle yurtdışındaki sistemlerde olduğu gibi müşterilerimize soru-cevap şeklinde bir alan sunabileceğimiz "müşteri destek" masasını nasıl yapacağınızı tarif etmeye çalışacağım.

Not: Modül resmi sitesinde ücretsiz olacak dağıtılmaktadır.

Sistemi kurmadan önce lütfen yedek alınız, devamında herhangi bir sorumluluk kabul edilmeyecektir!

1- Öncelikle ekte verilen dosyalarımızı FTP yoluyla yüklüyoruz.

2- PHPMyAdmin'e giriyoruz. Buraya SQL tabloları ekleyeceğiz. Kendi veritabanımıza tıklıyoruz. Aşağıdaki gibi bir ekran gelecek ve devamını takip edelim resimlerden...

http://hizliupload.com/viewer.php?file=95337500211659344249.gif
http://hizliupload.com/viewer.php?file=38822079816296012825.gif

SQL KODUMUZ
Kod:
/*Table structure for table `tabloönekiniz_customer_support` */

DROP TABLE IF EXISTS `tabloönekiniz_customer_support`;

CREATE TABLE `tabloönekiniz_customer_support` (
  `customer_support_id` int(11) NOT NULL AUTO_INCREMENT,
  `store_id` int(11) DEFAULT NULL,
  `customer_id` int(11) DEFAULT NULL,
  `subject` tinytext,
  `enquiry` text,
  `answer` text,
  `date_added` datetime DEFAULT NULL,
  `date_answer` datetime DEFAULT NULL,
  `customer_support_1st_category_id` int(11) DEFAULT NULL,
  `customer_support_2nd_category_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`customer_support_id`)
) ;

/*Table structure for table `tabloönekiniz_customer_support_category` */

DROP TABLE IF EXISTS `tabloönekiniz_customer_support_category`;

CREATE TABLE `tabloönekiniz_customer_support_category` (
  `category_id` int(11) NOT NULL AUTO_INCREMENT,
  `parent_id` int(11) NOT NULL DEFAULT '0',
  `sort_order` int(3) NOT NULL DEFAULT '0',
  `date_added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `date_modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `status` int(1) NOT NULL DEFAULT '1',
  PRIMARY KEY (`category_id`)
);

/*Table structure for table `tabloönekiniz_customer_support_category_description` */

DROP TABLE IF EXISTS `tabloönekiniz_customer_support_category_description`;

CREATE TABLE `tabloönekiniz_customer_support_category_description` (
  `category_id` int(11) NOT NULL,
  `language_id` int(11) NOT NULL,
  `name` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
  PRIMARY KEY (`category_id`,`language_id`),
  KEY `name` (`name`)
);

/*Table structure for table `tabloönekiniz_customer_support_category_to_store` */

DROP TABLE IF EXISTS `tabloönekiniz_customer_support_category_to_store`;

CREATE TABLE `tabloönekiniz_customer_support_category_to_store` (
  `category_id` int(11) NOT NULL,
  `store_id` int(11) NOT NULL,
  PRIMARY KEY (`category_id`,`store_id`)
);

Yukarıdaki kodu eklerken önemli bir detayımız var!

Kod:
/*Table structure for table `customer_support_category_to_store` */

DROP TABLE IF EXISTS `customer_support_category_to_store`;

CREATE TABLE `customer_support_category_to_store` (

Bu şekilde geçen bölümlerine başına kendi sql tablo başlıklarımızı girmemiz gerekiyor. Zaten resimde de gördüğünüz gibi her başlığın önünde tablo adı vardır. Örn: gitti_customer_support_category_to_store

Bu kodları eklerken biz de kendi ön ekimiz ne ise yukarıda verdiğim alanların başına ön ekimizi ekliyoruz.

Bunları ekledikten sonra da sağ alt köşedeki "Git" butonuna tkılıyoruz ve tablolarımız eklenmiş oluyor. Şimdi gelelim kodlarımızı ekleyemeye... :)

admin/controller/common/header.php

BUL
Kod:
$this->data['text_zone'] = $this->language->get('text_zone');

ALTINA EKLE
Kod:
	// Module: Customer Support
	$this->data['text_customer_support'] = $this->language->get('text_customer_support');
	// Module: Customer Support

admin/controller/common/header.php

BUL
Kod:
$this->data['zone'] = HTTPS_SERVER . 'index.php?route=localisation/zone&token=' . $this->session->data['token'];

ALTINA EKLE
Kod:
	// Module: Customer Support
	$this->data['customer_support'] = HTTPS_SERVER . 'index.php?route=catalog/customer_support&token=' . $this->session->data['token'];
	// Module: Customer Support

admin/language/english/common/header.php

BUL
Kod:
$_['error_install']          = 'WARNING: INSTALL FOLDER STILL EXISTS!';

ALTINA EKLE
Kod:
	// Module: Customer Support
	$_['text_customer_support']  = 'Destek Masası';

admin/view/template/common/header.tpl

BUL
Kod:
<li><a href="<?php echo $information; ?>"><?php echo $text_information; ?></a></li>

ALTINA EKLE
Kod:
<li><a href="<?php echo $customer_support; ?>"><?php echo $text_customer_support; ?></a></li>

Yönetici paneline girerek catalog/customer_support bu alana yetki tanımlıyoruz.

catalog/controller/account/account.php

BUL
Kod:
$this->data['newsletter'] = HTTPS_SERVER . 'index.php?route=account/newsletter';

ALTINA EKLE
Kod:
	//######################################
	//	Module: Customer Support
	//######################################
	$this->data['text_customer_support'] = $this->language->get('text_customer_support');
	$this->data['customer_support'] = HTTPS_SERVER . 'index.php?route=account/customer_support';
	//######################################
	//	Module: Customer Support
	//######################################

catalog/language/english/account/account.php

BUL
Kod:
$_['text_newsletter']    = 'Subscribe / unsubscribe to newsletter';

ALTINA EKLE
Kod:
$_['text_customer_support']    = 'Destek Masası';

catalog/view/theme/default/template/account/account.tpl

BUL
Kod:
	<ul>
		<li><a href="<?php echo str_replace('&', '&', $newsletter); ?>"><?php echo $text_newsletter; ?></a></li>
	</ul>

ALTINA EKLE
Kod:
    <p><b><?php echo $text_customer_support; ?></b></p>
    <ul>
      <li><a href="<?php echo str_replace('&', '&', $customer_support); ?>"><?php echo $text_customer_support; ?></a></li>
    </ul>

catalog/controller/module/information.php

BUL
Kod:
$this->data['sitemap'] = HTTP_SERVER . 'index.php?route=information/sitemap';

ALTINA EKLE
Kod:
	//######################################
	//	Module: Customer Support
	//######################################
	$this->data['text_customer_support'] = $this->language->get('text_customer_support');
	$this->data['customer_support'] = HTTPS_SERVER . 'index.php?route=account/customer_support';
	//######################################
	//	Module: Customer Support
	//######################################

catalog/language/english/module/information.php

BUL
Kod:
$_['text_sitemap']  = 'Site Map';

ALTINA EKLE
Kod:
$_['text_customer_support'] = 'Destek Masası';

catalog/view/theme/default/template/module/information.tpl

BUL
Kod:
<li><a href="<?php echo str_replace('&', '&', $sitemap); ?>"><?php echo $text_sitemap; ?></a></li>

ALTINA EKLE
Kod:
<li><a href="<?php echo str_replace('&', '&', $customer_support); ?>"><?php echo $text_customer_support; ?></a>

İŞLEM TAMAMDIR!

Mümkün olduğunca sorularınıza yanıt vermeye çalışırım; ama zaten sistemi düzgünce ve sırasıyla şaşırmadan eklerseniz sorunsuz çalışıyor. Kolay gelsin...

Yüklenecek dosya: http://rapidshare.com/files/455271086/upload.zip
 

admira

OpenCart-TR
Katılım
20 Ocak 2010
Mesajlar
248
Tepkime puanı
0
Puanları
16
Web sitesi
www.TrendCorap.com
afroma çalışmaların için gerçekten çok teşekkür ederiz. Güzel ve kullanışlı bir modül. Açıkçası bu modülü ben 2 haftadır kullanıyorum tek kötü tarafı yanlızca üye olanlar istifade edebiliyor. Aynı zamanda debreli arkadaşımız da bu modülü yayınlamıştı. Keşke linkin altına devam etseydin.

http://forum.opencart-tr.com/thread-3157.html
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üst