1.5.3.1 versiyonda Hemen Al butonu eklemek..

sekhil

OpenCart-TR
Katılım
28 Nis 2011
Mesajlar
100
Tepkime puanı
0
Puanları
0
Ürün detay sayfası için nasıl yaparız bunu ..( hemen al butonuna basınca direk sepetim sayfasına gitmesini..)
 

el.aciz

OpenCart-TR
Katılım
28 Haz 2011
Mesajlar
100
Tepkime puanı
0
Puanları
0
Web sitesi
www.icgiyimbayan.com
Osdem abi teşekkürler. Gerçekten faydalı bir uygulama. Bizzat denedim. Mükemmel çalışıyor.

Fakat arkadaşların dediği gibi Ürün Detay sayfasında da olsa, ayrıca sepet yerine sepetteki "Alışverişi Tamamla" adımına geçse daha kısa ve kolay olmazmı?

Tabi konuya daha hakim olan sen olduğun için bu bir öneri.

Saygılarımla
 

lordd

OpenCart-TR
Katılım
14 Nis 2011
Mesajlar
60
Tepkime puanı
0
Puanları
0
Konum
Ant ~ İst
Web sitesi
ipekyolulokmanhekimler.com
Hocam bu düzenlemeleri yaptıktan sonra, sistemden seçenek ekleyince (Renk Seçeneği) çalışmıyor. Lütfen yardımcı olabilir misiniz?

Yukarı :/
 

bordo

OpenCart-TR
Katılım
1 Mar 2012
Mesajlar
3
Tepkime puanı
0
Puanları
0
Hocam çok teşerkkür ederim. 1.5.1.3.1 versiyonda yaptım oldu. Ancak ben iki dilde kullanıyorum, yani "Hemen al" değilde turkish.php ve english.php dosyalarına değişkenleri tanımlayıp yaptım. Defalarca kontrol ettim, hep türkçe kalıyor.
 

hide_out

OpenCart-TR
Katılım
5 Eki 2011
Mesajlar
12
Tepkime puanı
0
Puanları
0
Merhabalar ;

Ürün detay sayfası için denedim ancak başaramadım .. yardımlarınızı önemle rica ederimm.. Şimdiden teşekkür ederim..
 

elesta

OpenCart-TR
Katılım
15 Mar 2012
Mesajlar
72
Tepkime puanı
0
Puanları
0
osdem abimizden Ürün Sayfası içinde istiyoruz bunu :D
 

webmaster53

OpenCart-TR
Katılım
8 Kas 2010
Mesajlar
11
Tepkime puanı
0
Puanları
0
Dediğiniz versiyonda denedim ama çalışmadı. latest.php dosyasının içerisindekileri geri alınca sitem acılıyor. ama sizin dediğinizi yapınca site komple kapanıyor bir hata yok. sadece beyaz sayfa. localhostta çalışıyorum.
 

hepyack

OpenCart-TR
Katılım
6 Kas 2011
Mesajlar
6
Tepkime puanı
0
Puanları
0
1.5.2.1 için çalışıyor mu ve ürün sayfası için düzenleme yapma fırsatınız oldu mu?
 

kocaman1321

OpenCart-TR
Katılım
29 Nis 2012
Mesajlar
28
Tepkime puanı
0
Puanları
0
hagul' Alıntı:
s.a. üstad dediklerinin aynılarını uyguladım ama aldığım hata aşağıda:


Fatal error: Call to a member function rewrite() on a non-object in /home/*******/public_html/catalog/controller/module/latest.php on line 52

acaba neden kaynaklandı
Aynı Hatayı bende aldım.
 

burhan1985

OpenCart-TR
Katılım
25 May 2012
Mesajlar
5
Tepkime puanı
0
Puanları
0
osdem66' Alıntı:
Söz konusu hatanın eklenti ile alkası yok checkout klsöörü içindeki cart.tpl yi default kalsöründeki ile degiştirin.. sorn düzelir..


hocam aynısını yaptım latest.tpl için sorunsuz çalıştı ancak , aynı şekilde product tpl için yapmak istediğimde, mousla hemen al üzerine gelince veya hemen ala tıklayınca, adres satırında ingilizce olarak "product.tpl içinde bilmem ne satırında product değişkeni tanımlı değil satır 218 product.tpl" hatası veriyor.

product.tpl deki satır 218 içinde tpl dosyasına eklenmesi gereken buton kodları yeralıyor. bu sorunu ne yaptıysam gideremedim nereye nasıl bir değişken atamam gerek? latest.php ve latest.tpl deki değişken atamalarına bakarak bir yol izlemeye çalıştım ancak ne yaptıysam olmadı.
 

SAKINCALI

OpenCart-TR
Katılım
14 Nis 2010
Mesajlar
22
Tepkime puanı
0
Puanları
0
1.5.2.1 için denedim default temp hemen al butonu çıkmadı sorun uyumsuzlukmudur? yada deneyip uygulayan olumlu sonuç alan varmıdır?

hangi versionda çalışıyor eksiklik var gibi 1.5.2.1 e uyguladım çalışmadı
1.5.1.3.1 kurdup ona uyguladım yine çalışmadı

eniyisiburda.net hiçbir değişiklik olmadı
 

ShoVaLye_

OpenCart-TR
Katılım
5 Tem 2011
Mesajlar
1
Tepkime puanı
0
Puanları
0
Teşekkürler. Emeğinize Sağlık

osdem66' Alıntı:
kemo83' Alıntı:
merhaba,
latest.php nin içeriği aşağıda yer alıyor.
verdiğiniz kodları girdiğimde yukarıdaki hatayı alıyorum.
ilginize teşekkürler.

PHP:
<?php
class ControllerModuleLatest extends Controller {
	protected function index($setting) {
		$this->language->load('module/latest');
		
      	$this->data['heading_title'] = $this->language->get('heading_title');
		
		$this->data['button_cart'] = $this->language->get('button_cart');
				
		$this->load->model('catalog/product');
		
		$this->load->model('tool/image');
		
		$this->data['products'] = array();
		
		$data = array(
			'sort'  => 'p.date_added',
			'order' => 'DESC',
			'start' => 0,
			'limit' => $setting['limit']
		);

		$results = $this->model_catalog_product->getProducts($data);

		foreach ($results as $result) {
			if ($result['image']) {
				$image = $this->model_tool_image->resize($result['image'], $setting['image_width'], $setting['image_height']);
			} else {
				$image = false;
			}
						
			if (($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) {
				$price = $this->currency->format($this->tax->calculate($result['price'], $result['tax_class_id'], $this->config->get('config_tax')));
			} else {
				$price = false;
			}
					
			if ((float)$result['special']) {
				$special = $this->currency->format($this->tax->calculate($result['special'], $result['tax_class_id'], $this->config->get('config_tax')));
			} else {
				$special = false;
			}
			
			if ($this->config->get('config_review_status')) {
				$rating = $result['rating'];
			} else {
				$rating = false;
			}

			$this->data['products'][] = array(
				'product_id' => $result['product_id'],
				'thumb'   	 => $image,
				'name'    	 => $result['name'],
				'price'   	 => $price,
				'special' 	 => $special,
				'rating'     => $rating,
				'reviews'    => sprintf($this->language->get('text_reviews'), (int)$result['reviews']),
				'href'    	 => $this->url->link('product/product', 'product_id=' . $result['product_id']),
			);
		}

		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/latest.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/module/latest.tpl';
		} else {
			$this->template = 'default/template/module/latest.tpl';
		}

		$this->render();
	}
}
?>
Merhaba o kodları eklediginizde aldıgınız hata satırında ne yazıyor onu gönderin latest.php yi degil.büyük olasılıkla eklemede hata yapıyorsunuz..tekrar kontrol edin


expero' Alıntı:
merhabalar. öncelikle bu uygulama için çok teşekkür ederim. peki bu uygulamayı kategoriler ve ürün sayfasındaki sepete ekle butonun yanınada uyarlama şansımız varmı?

featured php de hata veriyor.

Notice: Undefined variable: result in /home/kampanya/public_html/catalog/controller/module/featured.php on line 45Notice: Undefined variable: result in /home/kampanya/public_html/catalog/controller/module/featured.php on line 50Notice: Undefined variable: result in /home/kampanya/public_html/catalog/controller/module/featured.php on line 45Notice: Undefined variable: result in /home/kampanya/public_html/catalog/controller/module/featured.php on line 50Notice: Undefined variable: result in /home/kampanya/public_html/catalog/controller/module/featured.php on line 45Notice: Undefined variable: result in /home/kampanya/public_html/catalog/controller/module/featured.php on line 50Notice: Undefined variable: result in /home/kampanya/public_html/catalog/controller/module/featured.php on line 45Notice: Undefined variable: result in /home/kampanya/public_html/catalog/controller/module/featured.php on line 50Notice: Undefined variable: result in /home/kampanya/public_html/catalog/controller/module/featured.php on line 45Notice: Undefined variable: result in /home/kampanya/public_html/catalog/controller/module/featured.php on line 50Notice: Undefined variable: result in /home/kampanya/public_html/catalog/controller/module/featured.php on line 45Notice: Undefined variable: result in /home/kampanya/public_html/catalog/controller/module/featured.php on line 50


Latest.php eklediginiz kod grubu çindeki
PHP:
$result
yazan yerleri
PHP:
$product_info
olarak degiştirin ayrıca kategorilerde ve ürün detay sayfasındada aynı eklemeleri yaparak çalıştıabilirsiniz





Ben Diğer Sayfalarda Uyguladım yalnız id= Sonrası Yok neden Olabilir.
 

pusatefe

OpenCart-TR
Katılım
9 Tem 2012
Mesajlar
6
Tepkime puanı
0
Puanları
0
Bu Sayfaları biz zip dosyasına atıp birde beni oku sayfası yapıp anlatsanız burda gönderdiğiniz kodlar siteye atınca hata veriyor ilginiz için teşekkürler
 

RedWhite27

OpenCart-TR
Katılım
5 Kas 2010
Mesajlar
145
Tepkime puanı
0
Puanları
0
Yaş
41
Konum
istanbul / Avcılar
Web sitesi
www.leventkorkmaz.com
Selam arkadaşlar, sisteme premium tema kurdum ve temada sepet ve sepete at butonlarını kaldır seçeneği mevcut, sistemi gezi,tur satışı olarak ayarladım fakat sepete at butonu yerine yada o kısımda biryerlere kendi hazırladıgım rezervasyon ver butonu kodunu eklemem gerek..! nerede bulabilirim bu kısmı acaba :angel: v.1.5.3.1 kullanıyorum. Şimdiden Teşekkürler...
 

karadamla

OpenCart-TR
Katılım
17 Şub 2011
Mesajlar
49
Tepkime puanı
0
Puanları
0
Hocam ya ben sizin için seçtiklerimiz modulu haricinde hepsine kurabildim.Sizin için seçtiklerimiz sitesinde hata veriyor.Verdiği hata aşağıda.Lütfen acil lazım.

Notice: Undefined variable: result in /home/kapidaal/public_html/catalog/controller/module/featured.php on line 45Notice: Undefined variable: result in /home/kapidaal/public_html/catalog/controller/module/featured.php on line 50Notice: Undefined variable: result in /home/kapidaal/public_html/catalog/controller/module/featured.php on line 45Notice: Undefined variable: result in /home/kapidaal/public_html/catalog/controller/module/featured.php on line 50Notice: Undefined variable: result in /home/kapidaal/public_html/catalog/controller/module/featured.php on line 45Notice: Undefined variable: result in /home/kapidaal/public_html/catalog/controller/module/featured.php on line 50Notice: Undefined variable: result in /home/kapidaal/public_html/catalog/controller/module/featured.php on line 45Notice: Undefined variable: result in /home/kapidaal/public_html/catalog/controller/module/featured.php on line 50Notice: Undefined variable: result in /home/kapidaal/public_html/catalog/controller/module/featured.php on line 45Notice: Undefined variable: result in /home/kapidaal/public_html/catalog/controller/module/featured.php on line 50Notice: Undefined variable: result in /home/kapidaal/public_html/catalog/controller/module/featured.php on line 45Notice: Undefined variable: result in /home/kapidaal/public_html/catalog/controller/module/featured.php on line 50
 

hsendogan

OpenCart-TR
Katılım
31 Ağu 2011
Mesajlar
23
Tepkime puanı
0
Puanları
0
1.5.3.1 sürümünde ürün sayfasında sepete ekle denildiğinde misafir/üye alışverişi seçimi - Fatura bilgileri girişi - ödeme türü girişi adımlarını atlayıp direkt sipariş onay (son aşama) kısmına gitmenin bir metodu varmı acaba?
 

UnknownSouL

OpenCart-TR
Katılım
1 Eki 2011
Mesajlar
17
Tepkime puanı
0
Puanları
0
bu modülü katalog kısmına değilde ürün açıklaması sayfasına koysak daha mantıklı olmaz mı?
 

sogenserkan

OpenCart-TR
Katılım
3 Mar 2011
Mesajlar
57
Tepkime puanı
0
Puanları
0
Yaş
40
Merhabalar
bu düzenlemeyi 1,513 de anasayfada sizin için ç-seçtiklerimiz kısmında uyguladım ve şu hatayı aldım.
bi kontrol fikir verebilirmisiniz acaba nedir sorun
--------------------------------------------------------------------
Notice: Undefined variable: result in /var/www/vhosts/site.com/httpdocs/catalog/controller/module/featured.php on line 46Notice: Undefined variable: result in /var/www/vhosts/site.com/httpdocs/catalog/controller/module/featured.php on line 50Notice
---------------------------------------------------------------------
 

matridox

OpenCart-TR
Katılım
10 Eyl 2009
Mesajlar
5
Tepkime puanı
0
Puanları
0
Merhabalar,
bende "super deal" modülü var ve onun superdeal.php dosyasında durum biraz farklı,uğraştım ama sonuç vermedi,normalde burdaki button normal sepete ekliyor ama ben direk ürünü ekleyip kasaya gitmesini istiyorum malum "hemen al" mantığı gibi. kodları veriyorum umarım yardımcı olabilecek arkadaşlar vardır.


<?php
class ControllerModuleSuperDeal extends Controller {
protected function index($setting) {
static $module = 0;
$this->language->load('module/superdeal');


$this->document->addScript('catalog/view/javascript/jquery.countdown.js');
$this->document->addStyle('catalog/view/theme/default/stylesheet/superdeal.css');

$this->data['heading_title'] = $this->language->get('heading_title');
$this->data['buynow'] = $this->language->get('text_buynow');
$this->data['yousave'] = $this->language->get('text_yousave');
$this->data['percentsave'] = $this->language->get('text_percentsave');
$this->data['price'] = $this->language->get('text_price');
$this->data['itemleft'] = $this->language->get('text_itemleft');
$this->data['button_cart'] = $this->language->get('button_cart');
$this->load->model('catalog/product');
$this->load->model('tool/image');
$this->data['products'] = array();
$this->data['superdeal_yousavebutton'] = $this->config->get('superdeal_yousavebutton');
$this->data['superdeal_itemleftbutton'] = $this->config->get('superdeal_itemleftbutton');
$this->data['superdeal_pricesavebutton'] = $this->config->get('superdeal_pricesavebutton');
$this->data['superdeal_percentsavebutton'] = $this->config->get('superdeal_percentsavebutton');
$this->data['superdeal_buynowbutton'] = $this->config->get('superdeal_buynowbutton');

$this->data['superdeal_buttonsize'] = $this->config->get('superdeal_buttonsize');
$showas = $this->data['superdeal_showas'] = $this->config->get('superdeal_showas');
$this->data['superdeal_slideeffect'] = $this->config->get('superdeal_slideeffect');
$this->data['superdeal_titlesize'] = $this->config->get('superdeal_titlesize');
$countdesc = $this->config->get('superdeal_countdesc');
$counttype = $this->config->get('superdeal_counttype');
$this->data['modulestyle'] = 'width:'.$this->config->get('superdeal_width').'px;'.'min-height:'.$this->config->get('superdeal_height').'px;';
$this->data['boxheight'] = 'height:'.$this->config->get('superdeal_height') - 20 .'px;';
$this->data['fontsize'] = "font-size:".$this->config->get('superdeal_producttextsize').'px;';

if ($showas == 'slide'){
$this->document->addScript('catalog/view/javascript/jquery.cycle.all.min.js');
}


//$module = $this->config->get('superdeal_module');

$products = explode(',', $this->config->get('superdeal_product'));

foreach ($products as $product_id) {
$product_info = $this->model_catalog_product->getProduct($product_id);

$oRow = $this->db->query("SELECT* FROM " . DB_PREFIX . "product_special WHERE product_id = ".$product_id);

foreach ($oRow->rows as $row ){
$date_start = $row['date_start'];
$date_end = $row['date_end'];

}
//echo "<pre>"; var_dump($product_info); echo "</pre>";


if ($product_info) {
if ($product_info['image']) {
$image = $this->model_tool_image->resize($product_info['image'], $setting['image_width'], $setting['image_height']);
} else {
$image = false;
}

if (($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) {
$price = $this->currency->format($this->tax->calculate($product_info['price'], $product_info['tax_class_id'], $this->config->get('config_tax')));
} else {
$price = false;
}

if ((float)$product_info['special']) {
$special = $this->currency->format($this->tax->calculate($product_info['special'], $product_info['tax_class_id'], $this->config->get('config_tax')));
} else {
$special = false;
}

if ((float)$product_info['special']) {
$yousave= $this->currency->format($this->tax->calculate($product_info['price'] - $product_info['special'], $product_info['tax_class_id'], $this->config->get('config_tax')));
} else {
$yousave = false;
}

if ($this->config->get('config_review_status')) {
$rating = $product_info['rating'];
} else {
$rating = false;
}

$timeleft = strtotime($date_end) - strtotime(date('Y-m-d'));

if ($timeleft > 0){
$day = explode('-', $date_end);
$yleft = $day[0];
$mleft = $day[1];
$dleft = $day[2];

}
else {
$yleft = 0;
$mleft = 0;
$dleft = 0;
}



if ($counttype == 'words'){
$description = explode(' ',strip_tags(htmlspecialchars_decode($product_info['description'])));
$strDesc = array();
if($countdesc>0){
$totalword = $countdesc;
}else{
$totalword = count($description);
}

for($i = 0 ; $i<$totalword; $i++){
if ($description[$i] != ""){
$strDesc[]= $description[$i] ;
}

}
$desc = implode(' ', $strDesc);
}else{
$description = strip_tags(htmlspecialchars_decode($product_info['description']));
$desc = substr($description,0,$countdesc);
}


$this->data['products'][] = array(
'product_id' => $product_info['product_id'],
'thumb' => $image,
'name' => $product_info['name'],
'description' => $desc,
'price' => $price,
'special' => $special,
'rating' => $rating,
'reviews' => sprintf($this->language->get('text_reviews'), (int)$product_info['reviews']),
'href' => $this->url->link('product/product', 'product_id=' . $product_info['product_id']),
'date_start' => $date_start,
'date_end' => $date_end,
'percentsave' => ceil(((($product_info['price']- $product_info['special'])/$product_info['price'])*100)).'%',
'yousave' => $yousave,
'yleft' => $yleft,
'mleft' => $mleft,
'dleft' => $dleft,
'hleft' => 24 - date('H'),
'mileft' => 60-date('i'),
'sleft' => rand(0,60),
'timeleft' => $timeleft,
'quantity' => $product_info['quantity'],
);

}
}

$this->data['module'] = $module++;

if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/superdeal.tpl')) {
$this->template = $this->config->get('config_template') . '/template/module/superdeal.tpl';
} else {
$this->template = 'default/template/module/superdeal.tpl';
}

$this->render();
}
protected function date_diff($end)
{
$endtime = strtotime($end);

$today = time () ;
$difference =($endtime-$today) ;

$days =(int) ($difference/86400) ;

return $days;
}


}
//ALTER TABLE `product_special` CHANGE `date_start` `date_start` DATETIME NOT NULL DEFAULT '0000-00-00',
//CHANGE `date_end` `date_end` DATETIME NOT NULL DEFAULT '0000-00-00'
?>

cevap verecek kimse yokmu arkadaşlar???
 
Üst